diff options
Diffstat (limited to 'tests/testdata/run/unhandled_rejection.ts')
-rw-r--r-- | tests/testdata/run/unhandled_rejection.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/testdata/run/unhandled_rejection.ts b/tests/testdata/run/unhandled_rejection.ts deleted file mode 100644 index 388583434..000000000 --- a/tests/testdata/run/unhandled_rejection.ts +++ /dev/null @@ -1,13 +0,0 @@ -globalThis.addEventListener("unhandledrejection", (e) => { - console.log("unhandled rejection at:", e.promise, "reason:", e.reason); - e.preventDefault(); -}); - -class Foo { - constructor() { - Promise.reject(new Error("bar not available")); - } -} - -new Foo(); -Promise.reject(); |