Is it possible to use the eval command to execute something with a global scope? For example, this will cause an error:
Use (1, eval)('...').
(1, eval)('...')
$ node > fooMaker = function () { (1, eval)('foo = "bar"'); }; [Function] > typeof foo 'undefined' > fooMaker() undefined > typeof foo 'string' > foo 'bar'