From 45cb755845143b0446064841c469075fe88ff2f2 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 30 Oct 2014 13:09:37 +1100 Subject: [PATCH] better eval contexts in bin/6to5-node --- bin/6to5-node | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/6to5-node b/bin/6to5-node index 6e9cbd073d..9f28c46e90 100755 --- a/bin/6to5-node +++ b/bin/6to5-node @@ -35,11 +35,9 @@ to5.register(registerOpts); // -var context = vm.createContext({}); - var _eval = function (code, filename) { code = to5.transform(code, { filename: filename, blacklist: ["useStrict"] }).code; - return vm.runInContext(code, context, filename); + return vm.runInThisContext(code, filename); }; if (commander.eval) {