• Jakob Gruber's avatar
    [error] Use prepareStackTrace from error's realm · d766d6d5
    Jakob Gruber authored
    An error object's 'stack' property is lazily formatted once the
    property is first read. It is thus possible that lazy formatting
    happens in a different realm than where the error object was
    constructed.
    
    In this case, we should use the origin-realm's prepareStackTrace
    function to format the stack trace.
    
    This CL implements that behavior by fetching prepareStackTrace from
    the given error object's context's error function.
    
    Bug: v8:7848
    Change-Id: Ibc383cf24f2c0dab2fd8bb7bc740f1488d9954a5
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1113438
    Commit-Queue: Simon Zünd <szuend@chromium.org>
    Auto-Submit: Jakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarSimon Zünd <szuend@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#62090}
    d766d6d5
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
OWNERS Loading commit data...
arguments-inl.h Loading commit data...
arguments.cc Loading commit data...
arguments.h Loading commit data...
execution.cc Loading commit data...
execution.h Loading commit data...
frame-constants.h Loading commit data...
frames-inl.h Loading commit data...
frames.cc Loading commit data...
frames.h Loading commit data...
futex-emulation.cc Loading commit data...
futex-emulation.h Loading commit data...
isolate-data.h Loading commit data...
isolate-inl.h Loading commit data...
isolate.cc Loading commit data...
isolate.h Loading commit data...
message-template.h Loading commit data...
messages.cc Loading commit data...
messages.h Loading commit data...
microtask-queue.cc Loading commit data...
microtask-queue.h Loading commit data...
runtime-profiler.cc Loading commit data...
runtime-profiler.h Loading commit data...
simulator-base.cc Loading commit data...
simulator-base.h Loading commit data...
simulator.h Loading commit data...
thread-id.cc Loading commit data...
thread-id.h Loading commit data...
thread-local-top.cc Loading commit data...
thread-local-top.h Loading commit data...
v8threads.cc Loading commit data...
v8threads.h Loading commit data...
vm-state-inl.h Loading commit data...
vm-state.h Loading commit data...