Closed rbuckton closed 1 year ago
A preview of this PR can be found at https://tc39.es/proposal-explicit-resource-management/pr/143.
NOTE: This is mainly editorial cleanup and does not affect the intended semantics as the spec internal comparisons to null
and undefined
are not observable.
I believe this should have no differences in observable semantics, but would appreciate a review to verify.
@tc39/ecma262-editors can you review this change?
This simplifies
DisposableStack.prototype.use
to use the existing logic inAddDisposableResource
handle retrieving theSymbol.dispose
method. This is pretty much the same change I made in https://tc39.es/proposal-async-explicit-resource-management/#sec-disposablestack.prototype.use.