Skip to content

Commit 8fd484e

Browse files
committed
[squash] fix test
1 parent 5d2c83e commit 8fd484e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-promises-unhandled-proxy-rejections.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ common.expectWarning({
3434
UnhandledPromiseRejectionWarning: expectedPromiseWarning,
3535
});
3636

37-
// ensure this doesn't crash
38-
Promise.reject(thorny);
37+
// Ensure this doesn't crash
38+
const p = Promise.reject(thorny);
39+
p.catch(() => {});

0 commit comments

Comments
 (0)