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