• Andreas Haas's avatar
    [wasm] Do an additional IsWasmModuleObject check during instantiation · 441e6d4a
    Andreas Haas authored
    When WebAssembly.instantiate or WebAssembly.instantiateStreaming is
    called in JavaScript, internally we transfrom it into
    WebAssembly.compile(buffer).then(WebAssembly.instantiate). However,
    modifying the prototype of WebAssembly.Module can change the result of
    WebAssembly.compile(buffer). With this CL we make sure that even if the
    result of WebAssembly.compile is modified, there is still no type
    confusion. In the long term we have to do a refactoring and remove
    this internal transformation.
    
    R=mstarzinger@chromium.org
    
    Bug: chromium:837417
    Change-Id: I376068b8b8b01b991ec450162da6a62ae7030c62
    Reviewed-on: https://chromium-review.googlesource.com/1032392
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#52859}
    441e6d4a
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...