Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[squash] address review comments
  • Loading branch information
addaleax committed Jun 24, 2016
commit 3d9845b8d19f87f96c791e7569a4334c363975ef
8 changes: 4 additions & 4 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1527,10 +1527,10 @@ void AppendExceptionLine(Environment* env,
return;
}

err_obj->SetPrivate(
env->context(),
env->arrow_message_private_symbol(),
arrow_str);
CHECK(err_obj->SetPrivate(
env->context(),
env->arrow_message_private_symbol(),
arrow_str).FromMaybe(false));
}


Expand Down
2 changes: 1 addition & 1 deletion test/message/vm_caught_custom_runtime_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const vm = require('vm');
console.error('beginning');

// Regression test for https://github.com/nodejs/node/issues/7397:
// This should not print out anything to stderr due to the error being caught.
// vm.runInThisContext() should not print out anything to stderr by itself.
try {
vm.runInThisContext(`throw ({
name: 'MyCustomError',
Expand Down