From 7c2abb9d579d13fa61339c24f8c39bc3c27c25db Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 3 Nov 2021 09:27:36 -0400 Subject: fix: Deno.emit crashes with BorrowMutError (#12627) Warn on await_holding_refcell_ref clippy rule to avoid this in the future. Fixes #12453 --- cli/tests/testdata/issue12453.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cli/tests/testdata/issue12453.js (limited to 'cli/tests/testdata') 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); -- cgit v1.2.3