diff options
author | 2023-07-12 00:39:11 -0700 | |
---|---|---|
committer | 2023-07-12 00:39:11 -0700 | |
commit | 07f8b23350f495131e949b5aab1ebd436c5be949 (patch) | |
tree | b23b2dddc325eea4ffbc1a03a424afb8d18a6a27 /src/bun.js/bindings/ErrorStackTrace.h | |
parent | b566573977a8e5cad3dfd69441c61152235bcafc (diff) | |
download | bun-07f8b23350f495131e949b5aab1ebd436c5be949.tar.gz bun-07f8b23350f495131e949b5aab1ebd436c5be949.tar.zst bun-07f8b23350f495131e949b5aab1ebd436c5be949.zip |
Make Error.captureStackTrace 4x fasterjarred/faster-error-capturestacktrace
Diffstat (limited to 'src/bun.js/bindings/ErrorStackTrace.h')
-rw-r--r-- | src/bun.js/bindings/ErrorStackTrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/ErrorStackTrace.h b/src/bun.js/bindings/ErrorStackTrace.h index 1284376a4..9601219ea 100644 --- a/src/bun.js/bindings/ErrorStackTrace.h +++ b/src/bun.js/bindings/ErrorStackTrace.h @@ -139,7 +139,7 @@ public: bool isEmpty() const { return m_frames.isEmpty(); } JSCStackFrame& at(size_t i) { return m_frames.at(i); } - static JSCStackTrace fromExisting(JSC::VM& vm, const WTF::Vector<JSC::StackFrame>& existingFrames); + static JSCStackTrace fromExisting(JSC::VM& vm, const WTF::Vector<JSC::StackFrame>& existingFrames, int skipCount = 0); /* This is based on JSC::Interpreter::getStackTrace, but skips native (non js and not wasm) * frames, which is what v8 does. Note that we could have just called JSC::Interpreter::getStackTrace |