Closed
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.