0
0

🏷️ empty variable has empty string now

This commit is contained in:
DrMaxNix 2022-09-09 13:43:42 +02:00
parent 46f60b6f9d
commit 282725ab1e

View File

@ -211,7 +211,7 @@ class Juicescript_parser {
// GET VARIABLE NAME //
if(this.token.value !== null){
if(this.token.value.length > 0){
// literal
variable.name = {type: Juicescript.argument_type.LITERAL, value: this.token.value};
@ -238,7 +238,7 @@ class Juicescript_parser {
} else {
// ignore with error
this.error("unable to determine variable name");
this.error("variable without name");
}