0
0

💬 surround scope name with quotation marks at throw "unknown scope"

This commit is contained in:
DrMaxNix 2022-10-01 17:17:22 +02:00
parent c0ef3b82c7
commit 471b089454
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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