summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/node/unhandled_rejection_web_process.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/node/unhandled_rejection_web_process.ts')
-rw-r--r--cli/tests/testdata/node/unhandled_rejection_web_process.ts21
1 files changed, 0 insertions, 21 deletions
diff --git a/cli/tests/testdata/node/unhandled_rejection_web_process.ts b/cli/tests/testdata/node/unhandled_rejection_web_process.ts
deleted file mode 100644
index 2aaacfbff..000000000
--- a/cli/tests/testdata/node/unhandled_rejection_web_process.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import chalk from "npm:chalk";
-import process from "node:process";
-
-console.log(chalk.red("Hello world!"));
-
-process.on("unhandledRejection", (_e) => {
- console.log('process.on("unhandledRejection");');
-});
-
-globalThis.addEventListener("unhandledrejection", (_e) => {
- console.log('globalThis.addEventListener("unhandledrejection");');
-});
-
-// deno-lint-ignore require-await
-(async () => {
- throw new Error("boom!");
-})();
-
-setTimeout(() => {
- console.log("Success");
-}, 1000);