Skip to content

Commit 558f4e8

Browse files
committed
editorial and small fixes for PR #97
1 parent dc5d368 commit 558f4e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ When Loader is called with no arguments, the following steps are taken:
173173

174174
<emu-alg>
175175
1. If NewTarget is *undefined*, then throw a *TypeError* exception.
176-
1. Let _O_ be ? OrdinaryCreateFromConstructor(NewTarget, "%LoaderPrototype%").
176+
1. Let _O_ be ? OrdinaryCreateFromConstructor(NewTarget, "%LoaderPrototype%", «[[Realm]], [[Registry]]»).
177177
1. Set _O_’s [[Registry]] internal slot to CreateRegistry().
178178
1. Return _O_.
179179
</emu-alg>
@@ -489,9 +489,8 @@ The abstract operation GetStage with arguments <i>entry</i> and <i>stage</i> per
489489
1. Assert: _entry_ must have all of the internal slots of a ModuleStatus Instance (<a href="#module-status-internal-slots">5.5</a>).
490490
1. Assert: Type(_stage_) is String.
491491
1. Let _stages_ be _entry_.[[Pipeline]].
492-
1. For each element _entry_ of _stages_, do
493-
1. If _entry_.[[Stage]] is equal to _stage_, then
494-
1. Return _entry_.
492+
1. For each element _stageEntry_ of _stages_, do
493+
1. If _stageEntry_.[[Stage]] is equal to _stage_, return _stageEntry_.
495494
1. Return *undefined*.
496495
</emu-alg>
497496

@@ -524,6 +523,8 @@ The abstract operation LoadModule with arguments <i>entry</i> and <i>stage</i> p
524523

525524
<h4 id="module-status-UpgradeToStage" aoid="UpgradeToStage">UpgradeToStage(entry, stage)</h4>
526525

526+
The abstract operation UpgradeToStage with arguments <i>entry</i> and <i>stage</i> performs the following steps:
527+
527528
<emu-alg>
528529
1. Assert: _entry_ must have all of the internal slots of a ModuleStatus Instance (<a href="#module-status-internal-slots">5.5</a>).
529530
1. Assert: Type(_stage_) is String.
@@ -770,7 +771,6 @@ The following steps are taken:
770771
1. Let _entry_ be *this* value.
771772
1. If Type(_entry_) is not Object, return a promise rejected with a new *TypeError* exception.
772773
1. If _entry_ does not have all of the internal slots of a ModuleStatus Instance (<a href="#module-status-internal-slots">5.5</a>), return a promise rejected with a new *TypeError* exception.
773-
1. If Type(_entry_) is not Object, throw a new *TypeError*.
774774
1. Let _stageValue_ be ToString(_stage_).
775775
1. RejectIfAbrupt(_stageValue_).
776776
1. If IsValidStageValue(_stageValue_) is *false*, return a promise rejected with a new *RangeError* exception.

0 commit comments

Comments
 (0)