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
Reduce unnecessary Awaits for nullish values in blocks containing await using (#219)
* Add PromiseCapability wrapper around sync dispose used in an `await using`
* Reduce unnecessary Awaits for nullish values in blocks containing `await using`
* Update DisposeResources to match tentative consensus
* Match spec text for each
* Fix formatting
* Remove extraneous assignment
* fix indent
1. NOTE: This can only indicate a case where either *null* or *undefined* was the initialized value of an `await using` declaration.
1139
+
1. If _needsAwait_ is *true* and _hasAwaited_ is *false*, then
1140
+
1. Perform ! Await(*undefined*).
1123
1141
1. NOTE: After _disposeCapability_ has been disposed, it will never be used again. The contents of _disposeCapability_.[[DisposableResourceStack]] can be discarded in implementations, such as by garbage collection, at this point.
1124
1142
1. Set _disposeCapability_.[[DisposableResourceStack]] to a new empty List.
0 commit comments