deps: V8: cherry-pick 25902244ad1a · nodejs/node@943047e · GitHub
Skip to content

Commit 943047e

Browse files
joyeecheungtargos
authored andcommitted
deps: V8: cherry-pick 25902244ad1a
Original commit message: [api] add line breaks to the output of Message::PrintCurrentStackTrace Previously this prints the stack trace without line breaks and it can be difficult to read. This also affects --abort-on-uncaught-exception. This patch adds line breaks to the output to improve readability. Change-Id: I4c44b529f8c829329f784b0859b1d13c9ec56838 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4925009 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Joyee Cheung <joyee@igalia.com> Cr-Commit-Position: refs/heads/main@{#90360} Refs: v8/v8@2590224 PR-URL: #50156 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
1 parent bf7b94f commit 943047e

3 files changed

Lines changed: 48 additions & 1 deletion

File tree

common.gypi

Lines changed: 1 addition & 1 deletion

deps/v8/src/execution/isolate.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,6 +2503,7 @@ void Isolate::PrintCurrentStackTrace(std::ostream& out) {
25032503
for (int i = 0; i < frames->length(); ++i) {
25042504
Handle<CallSiteInfo> frame(CallSiteInfo::cast(frames->get(i)), this);
25052505
SerializeCallSiteInfo(this, frame, &builder);
2506+
if (i != frames->length() - 1) builder.AppendCharacter('\n');
25062507
}
25072508

25082509
Handle<String> stack_trace = builder.Finish().ToHandleChecked();

deps/v8/test/cctest/test-api.cc

Lines changed: 46 additions & 0 deletions

0 commit comments

Comments
 (0)