Skip to content

Commit

Permalink
add process.listeners impl
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed May 26, 2020
1 parent 5ea3037 commit ad78042
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions browser-entry.js
Expand Up @@ -77,6 +77,13 @@ process.on = function(e, fn) {
}
};

process.listeners = function(e) {
if (e === 'uncaughtException') {
return uncaughtExceptionHandlers;
}
return [];
};

// The BDD UI is registered by default, but no UI will be functional in the
// browser without an explicit call to the overridden `mocha.ui` (see below).
// Ensure that this default UI does not expose its methods to the global scope.
Expand Down

0 comments on commit ad78042

Please sign in to comment.