You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node> require("pogo").compile("x = 0\nfoo\n x := 1")
'(function() {\n var self = this;\n var x;\n x = 0;\n foo(function() {\n return x = 1;\n });\n}).call(this);'
...but compiling the same code with inScope=false throws an error:
node> require("pogo").compile("x = 0\nfoo\n x := 1", { inScope: false });
Error: undefined:3
x := 1
^^^^^^
variable x is not defined, use = to define it
The text was updated successfully, but these errors were encountered:
This works
...but compiling the same code with inScope=false throws an error:
The text was updated successfully, but these errors were encountered: