• Michael Starzinger's avatar
    [wasm] Fix source positions for rethrown exceptions. · 89272565
    Michael Starzinger authored
    This fixes the source position printed in the stack trace for exceptions
    rethrown from within Wasm code. This only affects the message propagated
    to the console, not the trace stored as part of the exception object.
    
    Note that there still is a more fundamental issues with preserving the
    original message of a caught exception and funneling it through to each
    rethrow site, which is still missing. This change just makes sure that
    the interpreter and TurboFan are consistent.
    
    R=clemensh@chromium.org
    TEST=message/fail/wasm-exception-rethrow
    BUG=v8:8091
    
    Change-Id: Iac04149ded3c54f5b23faeb83b1228081bbd3dfa
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1598754Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#61374}
    89272565
wasm-exception-rethrow.js 630 Bytes