💬 surround scope name with quotation marks at throw "unknown scope"
This commit is contained in:
parent
c0ef3b82c7
commit
471b089454
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user