diff options
Diffstat (limited to '')
-rw-r--r-- | src/bun.js/bindings/ErrorStackTrace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/bindings/ErrorStackTrace.cpp b/src/bun.js/bindings/ErrorStackTrace.cpp index 59e0e765b..87627a482 100644 --- a/src/bun.js/bindings/ErrorStackTrace.cpp +++ b/src/bun.js/bindings/ErrorStackTrace.cpp @@ -19,7 +19,7 @@ using namespace WebCore; namespace Zig { -JSCStackTrace JSCStackTrace::fromExisting(JSC::VM& vm, const WTF::Vector<JSC::StackFrame>& existingFrames) +JSCStackTrace JSCStackTrace::fromExisting(JSC::VM& vm, const WTF::Vector<JSC::StackFrame>& existingFrames, int skipCount) { WTF::Vector<JSCStackFrame> newFrames; @@ -29,7 +29,7 @@ JSCStackTrace JSCStackTrace::fromExisting(JSC::VM& vm, const WTF::Vector<JSC::St } newFrames.reserveInitialCapacity(frameCount); - for (size_t i = 0; i < frameCount; i++) { + for (size_t i = skipCount; i < frameCount; i++) { newFrames.constructAndAppend(vm, existingFrames.at(i)); } |