From 471b08945464f8c3e82671d2acc8785ee4221d53 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Sat, 1 Oct 2022 17:17:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC=20surround=20scope=20name=20with?= =?UTF-8?q?=20quotation=20marks=20at=20`throw=20"unknown=20scope"`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parser.js | 2 +- src/runner.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser.js b/src/parser.js index 9c7c909..31202b9 100644 --- a/src/parser.js +++ b/src/parser.js @@ -512,7 +512,7 @@ class Juicescript_parser { // make sure this scope exists if(!Object.keys(this.tree.scope).includes(this.scope)){ - throw "unknown scope " + this.scope; + throw "unknown scope '" + this.scope + "'"; } // return scope diff --git a/src/runner.js b/src/runner.js index f87e473..aad3ffb 100644 --- a/src/runner.js +++ b/src/runner.js @@ -114,7 +114,7 @@ class Juicescript_runner { // make sure this scope exists if(!Object.keys(this.tree.scope).includes(this.scope)){ - throw "unknown scope " + this.scope; + throw "unknown scope '" + this.scope + "'"; } // return scope