• Gus Caplan's avatar
    [api] Redesign the Isolate PrepareStackTrace API · 1e758861
    Gus Caplan authored
    This CL replaces the stack trace parameter with a the array that is
    usually passed to the JS prepareStackTrace callback. This allows two
    important goals to be realized: 1) we can easily stringify individual
    frames and 2) we can (if needed) call back into JS from this callback
    with a usable structure. If, as is sometimes the case, a v8::StackTrace
    is needed, |v8::Exception::GetStackTrace| can be used on the exception
    that is passed to PrepareStackTraceCallback.
    
    Bug: v8:7637
    
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
    Change-Id: I57fa1f2b4552cc7f69351fe0918f4e59e3f5fce1
    Reviewed-on: https://chromium-review.googlesource.com/c/1266698Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#56880}
    1e758861
test-api.cc 1020 KB