Skip to content

Commit

Permalink
deps: V8: cherry-pick cc9a8a37445e
Browse files Browse the repository at this point in the history
Original commit message:

    fix overflow check in error formatting

    Bug: v8:12494
    Change-Id: Iba2684173296aa236f1a1c73a5606c21472eff06
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3426634
    Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
    Commit-Queue: Gus Caplan <snek@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78909}

Refs: v8/v8@cc9a8a3

PR-URL: #41826
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com>
  • Loading branch information
devsnek authored and juanarbol committed Apr 28, 2022
1 parent b89d4ef commit 3d6255f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps/v8/src/execution/messages.cc
Expand Up @@ -858,7 +858,8 @@ MaybeHandle<Object> ErrorUtils::FormatStackTrace(Isolate* isolate,
Handle<FixedArray> elems = Handle<FixedArray>::cast(raw_stack);

const bool in_recursion = isolate->formatting_stack_trace();
if (!in_recursion) {
const bool has_overflowed = i::StackLimitCheck{isolate}.HasOverflowed();
if (!in_recursion && !has_overflowed) {
Handle<Context> error_context = error->GetCreationContext();
DCHECK(error_context->IsNativeContext());

Expand Down

0 comments on commit 3d6255f

Please sign in to comment.