Skip to content

Commit

Permalink
Editorial: insert "the Record" before record 'constructor' (tc39#1904)
Browse files Browse the repository at this point in the history
No other algorithm step creates a record value without some kind of name prefix before the open-brace.

(re tc39#1597)
  • Loading branch information
jmdyck authored and ljharb committed Mar 21, 2020
1 parent ab3593c commit 2bded5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -39913,7 +39913,7 @@ <h1>NewPromiseReactionJob ( _reaction_, _argument_ )</h1>
1. If _reaction_.[[Handler]] is not *undefined*, then
1. Let _getHandlerRealmResult_ be GetFunctionRealm(_reaction_.[[Handler]]).
1. If _getHandlerRealmResult_ is a normal completion, then set _handlerRealm_ to _getHandlerRealmResult_.[[Value]].
1. Return { [[Job]]: _job_, [[Realm]]: _handlerRealm_ }.
1. Return the Record { [[Job]]: _job_, [[Realm]]: _handlerRealm_ }.
</emu-alg>
</emu-clause>

Expand All @@ -39931,7 +39931,7 @@ <h1>NewPromiseResolveThenableJob ( _promiseToResolve_, _thenable_, _then_ )</h1>
1. Let _getThenRealmResult_ be GetFunctionRealm(_then_).
1. If _getThenRealmResult_ is a normal completion, then let _thenRealm_ be _getThenRealmResult_.[[Value]].
1. Otherwise, let _thenRealm_ be *null*.
1. Return { [[Job]]: _job_, [[Realm]]: _thenRealm_ }.
1. Return the Record { [[Job]]: _job_, [[Realm]]: _thenRealm_ }.
</emu-alg>
<emu-note>
<p>This Job uses the supplied thenable and its `then` method to resolve the given promise. This process must take place as a Job to ensure that the evaluation of the `then` method occurs after evaluation of any surrounding code has completed.</p>
Expand Down

0 comments on commit 2bded5a

Please sign in to comment.