🏷️ empty variable has empty string now
This commit is contained in:
parent
46f60b6f9d
commit
282725ab1e
@ -211,7 +211,7 @@ class Juicescript_parser {
|
|||||||
|
|
||||||
|
|
||||||
// GET VARIABLE NAME //
|
// GET VARIABLE NAME //
|
||||||
if(this.token.value !== null){
|
if(this.token.value.length > 0){
|
||||||
// literal
|
// literal
|
||||||
variable.name = {type: Juicescript.argument_type.LITERAL, value: this.token.value};
|
variable.name = {type: Juicescript.argument_type.LITERAL, value: this.token.value};
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ class Juicescript_parser {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// ignore with error
|
// ignore with error
|
||||||
this.error("unable to determine variable name");
|
this.error("variable without name");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user