summaryrefslogtreecommitdiff
path: root/tests/testdata/test/unhandled_rejection.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/test/unhandled_rejection.ts')
-rw-r--r--tests/testdata/test/unhandled_rejection.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testdata/test/unhandled_rejection.ts b/tests/testdata/test/unhandled_rejection.ts
new file mode 100644
index 000000000..32f3111ea
--- /dev/null
+++ b/tests/testdata/test/unhandled_rejection.ts
@@ -0,0 +1,3 @@
+new Promise((_resolve, reject) => {
+ reject(new Error("rejection"));
+});