deps: V8: cherry-pick be84cdeee94e

Original commit message:

    [d8] Handle termination exception in async modules

    ... instead of failing a CHECK.

    Fixed: 488754141
    Change-Id: If97aea17887b731434a776bbac3ffba47b422417
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7653802
    Reviewed-by: Patrick Thier <pthier@chromium.org>
    Auto-Submit: Igor Sheludko <ishell@chromium.org>
    Commit-Queue: Igor Sheludko <ishell@chromium.org>
    Commit-Queue: Patrick Thier <pthier@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#105734}

Refs: https://github.com/v8/v8/commit/be84cdeee94ee2574352cd6527d9a2f0bc0bea54
PR-URL: https://github.com/nodejs/node/pull/67570
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Igor Sheludko authored and Antoine du Hamel committed 2026-11-21 15:16:29 +01:00
1 parent 899d01304c
commit fd53482db2
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -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 #####
+3
View File
@@ -1021,6 +1021,9 @@ Maybe<bool> SourceTextModule::AsyncModuleExecutionFulfilled(
MaybeDirectHandle<Object> 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,