Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Source/JavaScriptCore/runtime/JSMicrotask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,11 @@ static void moduleLoadTopSettled(JSGlobalObject* globalObject, VM& vm, ThrowScop
entry->setEvaluationError(globalObject, error);
else
entry->setFetchError(globalObject, error);
} else {
// This microtask reacts to the embedder fetch promise, so a rejection
// here is a fetch failure even when the host rejected with a non-Error
// value (matching moduleRegistryFetchSettled's unconditional setFetchError).
entry->setFetchError(globalObject, errorValue);
}
intermediatePromise->reject(vm, errorValue);
}
Expand Down
Loading