You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.html
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -140,13 +140,13 @@ <h1>
140
140
</dl>
141
141
<emu-alg>
142
142
1. <del>Assert: _finalizationRegistry_ has [[Cells]] and [[CleanupCallback]] internal slots.</del>
143
-
1. <ins>Assert: _finalizationRegistry_ has [[Cells]], [[CleanupCallback]], and [[FinalizationRegistryAsyncContextSnapshot]] internal slots.</ins>
143
+
1. <ins>Assert: _finalizationRegistry_ has [[Cells]], [[CleanupCallback]], and [[FinalizationRegistryAsyncContextMapping]] internal slots.</ins>
144
144
1. Let _callback_ be _finalizationRegistry_.[[CleanupCallback]].
145
145
1. While _finalizationRegistry_.[[Cells]] contains a Record _cell_ such that _cell_.[[WeakRefTarget]] is ~empty~, an implementation may perform the following steps:
146
146
1. Choose any such _cell_.
147
147
1. Remove _cell_ from _finalizationRegistry_.[[Cells]].
<ins>a List of Async Context Mapping Records</ins>
@@ -377,7 +377,7 @@ <h1>
377
377
1. Let _promiseCapability_ be _reaction_.[[Capability]].
378
378
1. Let _type_ be _reaction_.[[Type]].
379
379
1. Let _handler_ be _reaction_.[[Handler]].
380
-
1. <ins>Let _previousContextMapping_ be AsyncContextSwap(_reaction_.[[PromiseAsyncContextSnapshot]]).</ins>
380
+
1. <ins>Let _previousContextMapping_ be AsyncContextSwap(_reaction_.[[PromiseAsyncContextMapping]]).</ins>
381
381
1. If _handler_ is ~empty~, then
382
382
1. If _type_ is ~fulfill~, then
383
383
1. let _handlerResult_ be NormalCompletion(_argument_).
@@ -420,10 +420,10 @@ <h1>
420
420
<dlclass="header">
421
421
</dl>
422
422
<emu-alg>
423
-
1. <ins>Let _snapshot_ be AsyncContextSnapshot().</ins>
424
-
1. Let _job_ be a new Job Abstract Closure with no parameters that captures _promiseToResolve_, _thenable_, _then_, <ins>and _snapshot_</ins> and performs the following steps when called:
423
+
1. <ins>Let _mapping_ be AsyncContextSnapshot().</ins>
424
+
1. Let _job_ be a new Job Abstract Closure with no parameters that captures _promiseToResolve_, _thenable_, _then_, <ins>and _mapping_</ins> and performs the following steps when called:
425
425
1. Let _resolvingFunctions_ be CreateResolvingFunctions(_promiseToResolve_).
426
-
1. <ins>Let _previousContextMapping_ be AsyncContextSwap(_snapshot_).</ins>
426
+
1. <ins>Let _previousContextMapping_ be AsyncContextSwap(_mapping_).</ins>
427
427
1. Let _thenCallResult_ be Completion(HostCallJobCallback(_then_, _thenable_, « _resolvingFunctions_.[[Resolve]], _resolvingFunctions_.[[Reject]] »)).
428
428
1. If _thenCallResult_ is an abrupt completion, then
1. Let _onRejectedJobCallback_ be HostMakeJobCallback(_onRejected_).
493
-
1. <ins>Let _snapshot_ be AsyncContextSnapshot().</ins>
494
-
1. Let _fulfillReaction_ be the PromiseReaction Record { [[Capability]]: _resultCapability_, [[Type]]: ~fulfill~, [[Handler]]: _onFulfilledJobCallback_, <ins>[[PromiseAsyncContextSnapshot]]: _snapshot_</ins> }.
495
-
1. Let _rejectReaction_ be the PromiseReaction Record { [[Capability]]: _resultCapability_, [[Type]]: ~reject~, [[Handler]]: _onRejectedJobCallback_, <ins>[[PromiseAsyncContextSnapshot]]: _snapshot_</ins>}.
493
+
1. <ins>Let _mapping_ be AsyncContextSnapshot().</ins>
494
+
1. Let _fulfillReaction_ be the PromiseReaction Record { [[Capability]]: _resultCapability_, [[Type]]: ~fulfill~, [[Handler]]: _onFulfilledJobCallback_, <ins>[[PromiseAsyncContextMapping]]: _mapping_</ins> }.
495
+
1. Let _rejectReaction_ be the PromiseReaction Record { [[Capability]]: _resultCapability_, [[Type]]: ~reject~, [[Handler]]: _onRejectedJobCallback_, <ins>[[PromiseAsyncContextMapping]]: _mapping_</ins>}.
496
496
1. If _promise_.[[PromiseState]] is ~pending~, then
497
497
1. Append _fulfillReaction_ to _promise_.[[PromiseFulfillReactions]].
498
498
1. Append _rejectReaction_ to _promise_.[[PromiseRejectReactions]].
0 commit comments