1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-02 17:01:14 -05:00
denoland-deno/cli/tests/integration
Andreu Botella d523cc2abc fix(fetch): Fix uncaught rejection panic with WebAssembly.instantiateStreaming (#13925)
When an exception is thrown during the processing of streaming WebAssembly,
`op_wasm_streaming_abort` is called. This op calls into V8, which synchronously
rejects the promise and calls into the promise rejection handler, if applicable.
But calling an op borrows the isolate's `JsRuntimeState` for the duration of the
op, which means it is borrowed when V8 calls into `promise_reject_callback`,
which tries to borrow it again, panicking.

This change changes `op_wasm_streaming_abort` from an op to a binding
(`Deno.core.abortWasmStreaming`). Although that binding must borrow the
`JsRuntimeState` in order to access the `WasmStreamingResource` stored in the
`OpTable`, it also takes ownership of that `WasmStreamingResource` instance,
which means it can drop any borrows of the `JsRuntimeState` before calling into
V8.
2022-03-24 13:39:10 +11:00
..
bench_tests.rs feat: "deno bench" subcommand (#13713) 2022-03-11 23:07:02 +01:00
bundle_tests.rs feat(cli): add ignore directives to bundled code (#13309) 2022-01-12 13:05:06 +01:00
cache_tests.rs fix: don't crash when $HOME is a relative path (#13581) 2022-02-03 14:08:17 +01:00
compat_tests.rs disable flakes (#13962) 2022-03-15 11:19:59 -04:00
compile_tests.rs fix(cli): improve deno compile error messages (#13944) 2022-03-24 13:39:10 +11:00
coverage_tests.rs fix(coverage): merge coverage ranges (#13334) 2022-01-11 21:17:25 +01:00
doc_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
eval_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
fmt_tests.rs feat: auto-discover config file (#13313) 2022-01-17 20:10:17 -05:00
info_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
inspector_tests.rs disable flakes (#13962) 2022-03-15 11:19:59 -04:00
install_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
lint_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
lsp_tests.rs feat(lsp): support deno.enablePaths setting (#13978) 2022-03-24 13:39:10 +11:00
mod.rs feat: "deno bench" subcommand (#13713) 2022-03-11 23:07:02 +01:00
repl_tests.rs fix(repl): fix null eval result (#13804) 2022-03-02 13:39:08 +09:00
run_tests.rs fix(fetch): Fix uncaught rejection panic with WebAssembly.instantiateStreaming (#13925) 2022-03-24 13:39:10 +11:00
task_tests.rs feat(task): add unstable warning to deno task (#13966) 2022-03-15 21:24:07 -04:00
test_tests.rs fix(test): skip typechecking for blocks inside HTML comments (#13889) 2022-03-11 02:14:32 +01:00
upgrade_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
vendor_tests.rs feat: deno vendor (#13670) 2022-02-16 13:14:19 -05:00
watcher_tests.rs feat(cli): add "--no-clear-screen" flag (#13454) 2022-01-31 17:39:39 +01:00
worker_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00