File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,8 @@ MaybeHandle<Object> ErrorUtils::FormatStackTrace(Isolate* isolate,
306
306
const bool in_recursion = isolate->formatting_stack_trace ();
307
307
const bool has_overflowed = i::StackLimitCheck{isolate}.HasOverflowed ();
308
308
Handle <Context> error_context;
309
- if (!in_recursion && error->GetCreationContext ().ToHandle (&error_context)) {
309
+ if (!in_recursion && !has_overflowed &&
310
+ error->GetCreationContext ().ToHandle (&error_context)) {
310
311
DCHECK (error_context->IsNativeContext ());
311
312
312
313
if (isolate->HasPrepareStackTraceCallback ()) {
@@ -322,7 +323,7 @@ MaybeHandle<Object> ErrorUtils::FormatStackTrace(Isolate* isolate,
322
323
isolate->RunPrepareStackTraceCallback (error_context, error, sites),
323
324
Object);
324
325
return result;
325
- } else if (!has_overflowed) {
326
+ } else {
326
327
Handle <JSFunction> global_error =
327
328
handle (error_context->error_function (), isolate);
328
329
You can’t perform that action at this time.
0 commit comments