"use strict";constvm=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.
Should give:
booInstead gives:
Modifying the actual
.messageproperty here seems very, very bad./cc @indutny since I believe you made changes to the error-message related stuff a while back.