Repository navigation
vm.runInContext rewrites thrown error messages #2104
Description
Activity
- addedvmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
on Jul 5, 2015 Oh no, not this again :)
(Maybe of note: I also had to change the add-an-arrow-to-errors logic in
node.ccto get code coverage to work. Eventually I just landed on bumping upsizeof(arrow)to 2048 or so.)Very interesting... So @domenic am I right that you expect it to print stuff to stderr only if the exception was uncaught?
This test wants it to be completely different: https://github.com/nodejs/io.js/blob/master/test/sequential/test-vm-syntax-error-stderr.js
It is easy to fix the problem, if we are sure what the problem is :) It is just a matter of removing
display_errorsfromnode_contextify.cc, or by making it default tofalse.Alternatively, you may want to pass
displayErrors: falseoption tovm.runInContext(...)to fix your sample.No, I want it to give "boo". A flag called displayErrors should not modify the .message property of objects returned from the vm.
Ok, I just got an idea how it could be fixed.
- added a commit that references this issue
on Jul 6, 2015 - addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.
on Jul 6, 2015 - added 7 commits that reference this issue
on Jul 17, 2015 Fixed by #2108
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.