[wasm][streaming] Call Abort without reason when executed in ScriptForbiddenScope
It can happen that WebAssembly.compileStreaming gets aborted when we are not allowed to execute JavaScript code, and therefore are also not allowed to reject the promise returned by WebAssembly.compileStreaming. This can happen e.g. when the Chrome tab gets refreshed, which aborts all downloads. With this CL we do not pass a reason to Abort if we are not allowed to execute JavaScript code. On the V8 side we can check the reason passed to Abort and do not reject the promise if there is no reason passed. The V8 side change is at crrev.com/c/876091 R=mtrofin@chromium.org Bug: chromium:803838 Change-Id: I55727f97fac38790cadc34ec5284131e13642f20 Reviewed-on: https://chromium-review.googlesource.com/876103Reviewed-by:Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#531863}
Showing
Please register or sign in to comment