Skip to content

Commit

Permalink
Correctly use hint in ForIn/OfBodyEvaluation (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton authored Mar 20, 2024
1 parent 06e6070 commit e53b73f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -2996,10 +2996,7 @@ contributors: Ron Buckton, Ecma International
1. Let _lhsName_ be the sole element of BoundNames of _lhs_.
1. Let _lhsRef_ be ! ResolveBinding(_lhsName_).
1. <del>Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_)).</del>
1. <ins>If IsUsingDeclaration of _lhs_ is *true*, then</ins>
1. <ins>Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_, ~sync-dispose~)).</ins>
1. <ins>Else,</ins>
1. <ins>Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_, ~normal~)).</ins>
1. <ins>Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_, _hint_)).</ins>
1. If _status_ is an abrupt completion, then
1. <ins>If _iterationEnv_ is not *undefined*, then</ins>
1. <ins>Set _status_ to Completion(DisposeResources(_iterationEnv_.[[DisposeCapability]], _status_)).</ins>
Expand Down

0 comments on commit e53b73f

Please sign in to comment.