Skip to content
Closed
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
Next Next commit
[Squash] add comment
  • Loading branch information
jasnell committed Nov 2, 2017
commit 7727acfe5991d27e64db7ed874e82a8a9343349f
6 changes: 5 additions & 1 deletion test/parallel/test-async-wrap-uncaughtexception.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ const call_log = [0, 0, 0, 0]; // [before, callback, exception, after];
let call_id = null;
let hooks = null;


// TODO(jasnell): This is using process.once because, for some as yet unknown
// reason, the 'beforeExit' event may be emitted more than once
// under some conditions on variaous platforms. Using the once
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: various

// handler here avoids the flakiness but ignores the underlying
// cause of the flakiness.
process.once('beforeExit', common.mustCall(() => {
process.removeAllListeners('uncaughtException');
hooks.disable();
Expand Down