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. --- runtime/js/99_main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime') 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, -- cgit v1.2.3