From e53b73f89e83014bcaa506d63367357f045f4ea9 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Wed, 20 Mar 2024 15:24:03 -0400 Subject: [PATCH] Correctly use hint in ForIn/OfBodyEvaluation (#171) --- spec.emu | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spec.emu b/spec.emu index 9d766f5..f2f5835 100644 --- a/spec.emu +++ b/spec.emu @@ -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. Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_)). - 1. If IsUsingDeclaration of _lhs_ is *true*, then - 1. Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_, ~sync-dispose~)). - 1. Else, - 1. Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_, ~normal~)). + 1. Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_, _hint_)). 1. If _status_ is an abrupt completion, then 1. If _iterationEnv_ is not *undefined*, then 1. Set _status_ to Completion(DisposeResources(_iterationEnv_.[[DisposeCapability]], _status_)).