We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8680dd commit 27ab3b2Copy full SHA for 27ab3b2
tests/integration/test.setup_global_hooks.js
@@ -15,7 +15,8 @@ beforeEach(function (done) {
15
afterEach(function (done) {
16
testUtils.removeUnhandledRejectionListener(currentListener);
17
if (currentError) {
18
- if (currentError instanceof PromiseRejectionEvent) {
+ if (typeof PromiseRejectionEvent !== 'undefined' &&
19
+ currentError instanceof PromiseRejectionEvent) {
20
currentError = currentError.reason;
21
}
22
0 commit comments