• Clemens Backes's avatar
    [wasm][exn] Add test for manipulated prototype chain · 42bc23de
    Clemens Backes authored
    This adds a test which I suspected would fail, but luckily it doesn't.
    The idea is to catch a proper wasm exception in JS, then construct a new
    exception, but set the catched exception as the prototype. My suspicion
    was that we would still handle that new exception like a wasm exception,
    since the `WasmExceptionGetTag` and `WasmExceptionGetValues` runtime
    functions to a standard property lookup, which includes a prototype
    walk.
    Interestingly, the prototype walk is already skipped automatically when
    loading private symbols, so the implementation already supports this
    case correctly.
    Let's still add this test to have coverage for this case.
    
    R=jkummerow@chromium.org
    CC=aheejin@chromium.org
    
    Bug: v8:8091
    Change-Id: Idf9944cf47f96cca38e9678e9200bf03a39ea126
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2167438Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#67391}
    42bc23de
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging 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...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...