Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Store ToString(𝔽(k)) in a variable for consistency #3531

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -41055,9 +41055,10 @@ <h1>%TypedArray%.prototype.indexOf ( _searchElement_ [ , _fromIndex_ ] )</h1>
1. Let _k_ be _len_ + _n_.
1. If _k_ &lt; 0, set _k_ to 0.
1. Repeat, while _k_ &lt; _len_,
1. Let _kPresent_ be ! HasProperty(_O_, ! ToString(𝔽(_k_))).
1. Let _Pk_ be ! ToString(𝔽(_k_)).
1. Let _kPresent_ be ! HasProperty(_O_, _Pk_).
1. If _kPresent_ is *true*, then
1. Let _elementK_ be ! Get(_O_, ! ToString(𝔽(_k_))).
1. Let _elementK_ be ! Get(_O_, _Pk_).
1. If IsStrictlyEqual(_searchElement_, _elementK_) is *true*, return 𝔽(_k_).
1. Set _k_ to _k_ + 1.
1. Return *-1*<sub>𝔽</sub>.
Expand Down Expand Up @@ -41115,9 +41116,10 @@ <h1>%TypedArray%.prototype.lastIndexOf ( _searchElement_ [ , _fromIndex_ ] )</h1
1. Else,
1. Let _k_ be _len_ + _n_.
1. Repeat, while _k_ ≥ 0,
1. Let _kPresent_ be ! HasProperty(_O_, ! ToString(𝔽(_k_))).
1. Let _Pk_ be ! ToString(𝔽(_k_)).
1. Let _kPresent_ be ! HasProperty(_O_, _Pk_).
1. If _kPresent_ is *true*, then
1. Let _elementK_ be ! Get(_O_, ! ToString(𝔽(_k_))).
1. Let _elementK_ be ! Get(_O_, _Pk_).
1. If IsStrictlyEqual(_searchElement_, _elementK_) is *true*, return 𝔽(_k_).
1. Set _k_ to _k_ - 1.
1. Return *-1*<sub>𝔽</sub>.
Expand Down
Loading