GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: V8: backport 786c1c2d88d4 by eliau2005 · Pull Request #66249 · nodejs/node

deps: V8: backport 786c1c2d88d4 #66249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
nodejs-github-bot merged 2 commits into nodejs:main from eliau2005:v8-backport-786c1c2d88
Sep 26, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

deps: V8: backport 786c1c2d88d4 #66249

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2 commits
Select commit Hold shift + click to select a range
2c53031
deps: V8: backport 786c1c2d88d4
eliau2005 Sep 23, 2026
4e2b6bd
deps: V8: bump embedder string to -node.36
eliau2005 Sep 24, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

2 changes: 1 addition & 1 deletion 2 common.gypi
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.35',
'v8_embedder_string': '-node.36',

##### V8 defaults for Node.js #####

Expand Down
1 change: 1 addition & 0 deletions 1 deps/v8/AUTHORS
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Douglas Crosher <[email protected]>
Dusan Milosavljevic <[email protected]>
Eden Wang <[email protected]>
Edoardo Marangoni <[email protected]>
Eliau Elkouby <[email protected]>
Elisha Hollander <[email protected]>
Eric Rannaud <[email protected]>
Erich Ocean <[email protected]>
Expand Down
11 changes: 7 additions & 4 deletions 11 deps/v8/src/execution/isolate.cc
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1645,12 +1645,15 @@ MaybeDirectHandle<JSObject> Isolate::CaptureAndSetErrorStack(
static_cast<uint32_t>(
stack_trace_for_uncaught_exceptions_frame_limit_));
DCHECK_GE(stack_trace_limit, 0);
if (static_cast<int>(stack_trace_limit) *
CallSiteInfo::Fields::kCount <
raw_data_for_call_site_infos->length()) {
// Compare in frames rather than raw slots to avoid overflowing for
// large Error.stackTraceLimit values.
uint32_t frame_count = raw_data_for_call_site_infos->ulength() /
CallSiteInfo::Fields::kCount;
if (static_cast<uint32_t>(stack_trace_limit) < frame_count) {
call_site_infos_or_formatted_stack = FixedArray::RightTrimOrEmpty(
this, raw_data_for_call_site_infos,
stack_trace_limit * CallSiteInfo::Fields::kCount);
static_cast<uint32_t>(stack_trace_limit) *
CallSiteInfo::Fields::kCount);
}
// Notify the debugger.
OnStackTraceCaptured(stack_trace);
Expand Down
28 changes: 28 additions & 0 deletions 28 deps/v8/test/cctest/test-api-stack-traces.cc
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,34 @@ TEST(CaptureStackTraceForUncaughtException) {
CHECK_EQ(1, report_count);
}

TEST(CaptureStackTraceForUncaughtExceptionHugeStackTraceLimit) {
LocalContext env;
v8::Isolate* isolate = env.isolate();
v8::HandleScope scope(isolate);
isolate->SetCaptureStackTraceForUncaughtExceptions(true);

CompileRun(
"function foo() { return new Error().stack; }\n"
"function bar() { return foo(); }\n"
"function stackWithLimit(limit) {\n"
" Error.stackTraceLimit = limit;\n"
" return bar();\n"
"}\n");
Local<Value> expected = CompileRun("stackWithLimit(10)");
CHECK(expected->IsString());

// For these limits, limit * CallSiteInfo::Fields::kCount overflows.
for (const char* limit : {"858993460", "858993461", "Infinity"}) {
std::string source = std::string("stackWithLimit(") + limit + ")";
CHECK(CompileRun(source.c_str())->StrictEquals(expected));
}

// Small limits must still trim the stack trace.
CHECK(CompileRun("stackWithLimit(1).split('\\n').length === 2")->IsTrue());

isolate->SetCaptureStackTraceForUncaughtExceptions(false);
}

// Test uncaught exception in a setter
const char uncaught_setter_exception_source[] =
"var setters = ['column', 'lineNumber', 'scriptName',\n"
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.