summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/issue12453.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-11-03 09:27:36 -0400
committerGitHub <noreply@github.com>2021-11-03 09:27:36 -0400
commit7c2abb9d579d13fa61339c24f8c39bc3c27c25db (patch)
treec3ce3cefff867dd3f073eda18ebed53f728e4675 /cli/tests/testdata/issue12453.js
parent95b2955712b0daae3c8e8f7bb0eccf341b5c8fa3 (diff)
fix: Deno.emit crashes with BorrowMutError (#12627)
Warn on await_holding_refcell_ref clippy rule to avoid this in the future. Fixes #12453
Diffstat (limited to 'cli/tests/testdata/issue12453.js')
-rw-r--r--cli/tests/testdata/issue12453.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/testdata/issue12453.js b/cli/tests/testdata/issue12453.js
new file mode 100644
index 000000000..2ed1b5ae7
--- /dev/null
+++ b/cli/tests/testdata/issue12453.js
@@ -0,0 +1,4 @@
+const i = setInterval(() => {
+ Deno.emit("http://localhost:4545/subdir/mt_text_typescript.t1.ts");
+ clearInterval(i);
+}, 1);