-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Description
Is this expected?
var vm = require("vm");
var ctx = vm.createContext();
ctx.console = console;
vm.runInContext("function red() { console.log('red'); }", ctx);
ctx.red(); // > red
vm.runInContext("function red() { console.log('green'); }", ctx);
ctx.red(); // > red
Pre- node v0.11.7, this used to log > green
.
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.