• Matheus Marchini's avatar
    [error] extend error stack w/ function parameters · 97628eee
    Matheus Marchini authored
    Extend FrameArray to hold weak references to parameters for functions in
    the call stack. The goal here is to provide more metadata for postmortem
    tools (such as llnode), especially in cases of rethrowing (this will be
    particularly useful when using postmortem with promises on Node.js).
    
    Besides postmortem, these changes allow us to print a more detailed
    stack trace for errors with parameters types (or even values), which can
    be useful since JavaScript functions can receive any number of
    parameters of any type, and having a function behave differently
    according to the number of parameters received as well as their types is
    a common pattern on JS libraries and frameworks.
    
    R=bmeurer@google.com, yangguo@google.com
    
    Change-Id: Idf0984d0dbac16041f11d738d4b1c095a8eecd61
    Reviewed-on: https://chromium-review.googlesource.com/c/1289489
    Commit-Queue: Yang Guo <yangguo@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#58468}
    97628eee
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
custom_deps Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.clang-tidy Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...