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 /runtime/js | |
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 'runtime/js')
-rw-r--r-- | runtime/js/99_main.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index c3e4a392c..22fd6bd8e 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -176,6 +176,7 @@ delete Object.prototype.__proto__; function runtimeStart(runtimeOptions, source) { core.setMacrotaskCallback(timers.handleTimerMacrotask); + core.setWasmStreamingCallback(fetch.handleWasmStreaming); version.setVersions( runtimeOptions.denoVersion, runtimeOptions.v8Version, |