We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d2c83e commit 8fd484eCopy full SHA for 8fd484e
test/parallel/test-promises-unhandled-proxy-rejections.js
@@ -34,5 +34,6 @@ common.expectWarning({
34
UnhandledPromiseRejectionWarning: expectedPromiseWarning,
35
});
36
37
-// ensure this doesn't crash
38
-Promise.reject(thorny);
+// Ensure this doesn't crash
+const p = Promise.reject(thorny);
39
+p.catch(() => {});
0 commit comments