Changelog

tc39/ecma262 · · 2 commits

ECMA-262 factors out execution and integer helpers

Two editorial refactors reduce duplication: a new fixed-size integer helper and a shared suspended-context runner.

Factor out fixed-size integer conversion (gibson04267ac2b7)

Adds ToFixedSizeInteger and rewires ToInt32, ToUint32, ToInt16, ToUint16, and related fixed-width conversions to use it. This consolidates the shared modulo/sign-adjustment logic and makes the spec wording more uniform, while also clarifying -0 handling for these conversions.

Factor out RunSuspendedContext (jmdycke07ec27)

Introduces RunSuspendedContext to capture the repeated suspend/push/resume pattern used across generators, async generators, and async function machinery. This is a readability and maintainability win for the spec, reducing duplicated execution-context steps without changing the underlying behavior.

Other misc changes

  • None.