Closed rbuckton closed 6 months ago
A preview of this PR can be found at https://tc39.es/proposal-explicit-resource-management/pr/171.
This was approved by consensus at the July, 2023 TC39 Plenary, but still needs reviews from the editors and reviewers before I can merge.
@waldemarhorwat, @syg, @michaelficarra, @bakkot: can you please review?
@waldemarhorwat, @syg: can you take a look at this? I have an approval from an editor but I'd like to get signoff from a reviewer before merging.
This has already been merged into https://github.com/rbuckton/ecma262/pull/3
This fixes an oversight in ForIn/OfBodyEvaluation to correctly use the hint variable initialized at the top of the algorithm when initializing the lhsRef binding via
InitializeReferencedBinding
. This is necessary to correctly initialize a resource that usesSymbol.asyncDispose
in the following statement:Fixes #172
cc: @tc39/ecma262-editors