This works
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
This works
...but compiling the same code with inScope=false throws an error: