summaryrefslogtreecommitdiff
path: root/cli/tests/delayed_error.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-02-18 22:36:02 +0000
committerGitHub <noreply@github.com>2021-02-19 09:36:02 +1100
commit555595e6d02d1fc1adb535df074d258389fab509 (patch)
tree73257523ea5f5ac44293b6820d72e8dae038b7b5 /cli/tests/delayed_error.ts
parentbb30e9291e2e3964aac2d2ca05b739dcc67d64a0 (diff)
fix(core): Make dynamic import async errors catchable (#9505)
Fixes #6259
Diffstat (limited to 'cli/tests/delayed_error.ts')
-rw-r--r--cli/tests/delayed_error.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tests/delayed_error.ts b/cli/tests/delayed_error.ts
new file mode 100644
index 000000000..76057e627
--- /dev/null
+++ b/cli/tests/delayed_error.ts
@@ -0,0 +1,2 @@
+await new Promise((r) => setTimeout(r, 100));
+throw new Error("foo");