diff options
author | Andreu Botella <abb@randomunok.com> | 2021-07-03 23:33:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 23:33:36 +0200 |
commit | ffa75be48044255ed49a822a7a61a2a130123a4a (patch) | |
tree | fe6af45c9087fc030b3e87b6f56ee53152361b9f /test_util/src | |
parent | 7ef0f43d87e3e45e8084bb7ae0dee2053968c010 (diff) |
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<Response> instead, as well as
enabling asynchronous compilation of WebAssembly modules.
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<u8>) -> Response<Body> { Some("application/javascript") } else if p.ends_with(".json") { Some("application/json") + } else if p.ends_with(".wasm") { + Some("application/wasm") } else { None }; |