diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-11-03 09:27:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-03 09:27:36 -0400 |
commit | 7c2abb9d579d13fa61339c24f8c39bc3c27c25db (patch) | |
tree | c3ce3cefff867dd3f073eda18ebed53f728e4675 /cli/tests/integration | |
parent | 95b2955712b0daae3c8e8f7bb0eccf341b5c8fa3 (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/integration')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index ec42a8dc8..b7480c44b 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -2148,3 +2148,21 @@ itest!(eval_context_throw_dom_exception { args: "run eval_context_throw_dom_exception.js", output: "eval_context_throw_dom_exception.js.out", }); + +#[test] +fn issue12453() { + let _g = util::http_server(); + let deno_dir = util::new_deno_dir(); + let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path()); + let status = deno_cmd + .current_dir(util::testdata_path()) + .arg("run") + .arg("--unstable") + .arg("--allow-net") + .arg("issue12453.js") + .spawn() + .unwrap() + .wait() + .unwrap(); + assert!(status.success()); +} |