Skip to content

Commit

Permalink
Merge pull request #899 from CindyJS/fix-new-var-in-eval
Browse files Browse the repository at this point in the history
fixes creating local variables in eval
  • Loading branch information
kortenkamp committed Jul 13, 2023
2 parents b02fcf2 + 5d92524 commit c6becfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/libcs/Namespace.js
Expand Up @@ -41,7 +41,7 @@ namespace.create = function (name) {
};

namespace.newvar = function (name) {
const v = this.vars[name];
const v = this.create(name);
v.push(nada); // nada not null for deeper levels
return v;
};
Expand Down

0 comments on commit c6becfc

Please sign in to comment.