diff --git a/common.gypi b/common.gypi index b92d7fd19a2..71840b13acd 100644 --- a/common.gypi +++ b/common.gypi @@ -50,7 +50,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.57', + 'v8_embedder_string': '-node.58', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/src/objects/source-text-module.cc b/deps/v8/src/objects/source-text-module.cc index 101373b83c6..127892250ae 100644 --- a/deps/v8/src/objects/source-text-module.cc +++ b/deps/v8/src/objects/source-text-module.cc @@ -1021,6 +1021,9 @@ Maybe SourceTextModule::AsyncModuleExecutionFulfilled( MaybeDirectHandle exception; // ii. If result is an abrupt completion, then if (!ExecuteModule(isolate, m, &exception).ToHandle(&unused_result)) { + DCHECK_IMPLIES(exception.IsEmpty(), + isolate->is_execution_terminating()); + if (isolate->is_execution_terminating()) return {}; // 1. Perform AsyncModuleExecutionRejected(m, result.[[Value]]). AsyncModuleExecutionRejected(isolate, m, exception.ToHandleChecked()); } else { // iii. Else,