We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b701498 commit f76b657Copy full SHA for f76b657
src/node.js
@@ -758,7 +758,8 @@ if (process.argv[1]) {
758
759
} else if (process._eval) {
760
// -e, --eval
761
- if (process._eval) console.log(eval(process._eval));
+ var indirectEval= eval; // so the eval happens in global scope.
762
+ if (process._eval) console.log(indirectEval(process._eval));
763
} else {
764
// REPL
765
module.requireNative('repl').start();
0 commit comments