Skip to content

Commit 79da42e

Browse files
committed
Disallow uncaught exceptions
1 parent 0c65d18 commit 79da42e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/client/firefox/tests/onconnect.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const debuggerClient = {
3535
const actions = {
3636
_sources: [],
3737
connect: () => {},
38-
38+
setWorkers: () => {},
3939
newSources: function(sources) {
4040
return new Promise(resolve => {
4141
setTimeout(() => {

src/test/tests-setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ setConfig(config);
2828

2929
process.on("unhandledRejection", (reason, p) => {
3030
console.log("Unhandled Rejection at:", p, "reason:", reason);
31+
throw reason;
3132
});

0 commit comments

Comments
 (0)