From 37f5a746e661b4fb478239692aebd3499b70be95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Thu, 15 Jan 2026 11:18:07 +0000 Subject: [PATCH] Editorial: Move module TopLevelCapability check inside if --- spec.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 96fd9e06cd..8d6dc06894 100644 --- a/spec.html +++ b/spec.html @@ -27152,10 +27152,11 @@

Evaluate ( ): a Promise

1. Set _module_ to _module_.[[CycleRoot]]. 1. Else, 1. Assert: _module_.[[Status]] is ~evaluated~ and _module_.[[EvaluationError]] is a throw completion. - 1. If _module_.[[TopLevelCapability]] is not ~empty~, then - 1. Return _module_.[[TopLevelCapability]].[[Promise]]. + 1. If _module_.[[TopLevelCapability]] is not ~empty~, then + 1. Return _module_.[[TopLevelCapability]].[[Promise]]. 1. Let _stack_ be a new empty List. 1. Let _capability_ be ! NewPromiseCapability(%Promise%). + 1. Assert: _module_.[[TopLevelCapability]] is ~empty~. 1. Set _module_.[[TopLevelCapability]] to _capability_. 1. Let _result_ be Completion(InnerModuleEvaluation(_module_, _stack_, 0)). 1. If _result_ is an abrupt completion, then