From ffa75be48044255ed49a822a7a61a2a130123a4a Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Sat, 3 Jul 2021 23:33:36 +0200 Subject: feat: enable WebAssembly.instantiateStreaming and wasm async compilation (#11200) The WebAssembly streaming APIs used to be enabled, but used to take buffer sources as their first argument (see #6154 and #7259). This change re-enables them, requiring a Promise instead, as well as enabling asynchronous compilation of WebAssembly modules. --- test_util/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test_util') diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 2bc0f7468..dce2dfc59 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -948,6 +948,8 @@ fn custom_headers(p: &str, body: Vec) -> Response { Some("application/javascript") } else if p.ends_with(".json") { Some("application/json") + } else if p.ends_with(".wasm") { + Some("application/wasm") } else { None }; -- cgit v1.2.3