Changelog

tc39/ecma262 · · 7 commits

Index helpers and execution-context cleanup

A refactor adds shared index-conversion helpers and rewrites several string, array, and typed-array algorithms; editorial cleanup also tightens execution-context wording.

Introduce shared index conversion helpers and apply them broadly (ljharb8cb397f, gibson042668a264, gibson04251c90da)

The spec now defines ToAbsoluteIndex and ToClampedIndex as reusable abstract operations, replacing many repeated clamp/negative-index patterns across string, array-like, and typed-array methods. This makes the algorithms easier to read and keeps index handling consistent in places like at, includes, indexOf, slice, copyWithin, and several typed-array operations.

Clarify execution-context resumption language (bakkotf9ae2d7)

The wording around resuming suspended contexts was changed from “Return” to “passing” to better reflect control transfer between execution contexts. A few generator and async-generator algorithms were also adjusted to model resumption explicitly.

Other misc changes

  • Editorial note move for CRLF line-terminator text (michaelficarra4ebfa1c)
  • ESMeta typecheck fixes and related spec assertions (gibson0427221f6c)
  • TypedArray subarray refactor to clarify TypedArraySpeciesCreate argument-count variance (gibson042f76baf1)