• Andreas Haas's avatar
    [wasm][streaming] Do not reject promise upon abort without reason · 56fe2437
    Andreas Haas authored
    This is the V8 side change of crrev.com/c/876103.
    
    Message:
    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.
    
    CC=mtrofin@chromium.org
    R=titzer@chromium.org
    
    Bug: chromium:803838
    Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
    Change-Id: Ie5cc85c72b60383e9221318c18a4e1812d230692
    Reviewed-on: https://chromium-review.googlesource.com/876091Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#50749}
    56fe2437
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...