-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Description
"use strict";
const vm = require("vm");
try {
vm.runInContext("throw new Error('boo');", vm.createContext({}));
} catch (e) {
console.log(e.message);
}
Should give: boo
Instead gives:
$ iojs test.js
evalmachine.<anonymous>:1
throw new Error('boo');
^
boo
Modifying the actual .message
property here seems very, very bad.
/cc @indutny since I believe you made changes to the error-message related stuff a while back.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.