Changelog

tc39/ecma262 · · 2 commits

Explicit resource management lands in the spec

TC39 adds using/await using, disposal symbols, and stack types, plus a small editorial refactor to reuse caller-context logic.

Explicit resource management added to the language (rbucktonf792966)

The spec now includes using and await using declarations, DisposableStack/AsyncDisposableStack, and SuppressedError, along with the new disposal symbols %Symbol.dispose% and %Symbol.asyncDispose%. This is a substantial new language feature for deterministic cleanup and error handling during resource disposal.

Factored out caller-context resumption logic (jmdyck45a6671)

An editorial refactor introduced RunCallerContext and replaced repeated execution-context switching steps in generator and async-related algorithms with calls to the new abstract operation. This reduces duplication in the spec text and makes the control-flow behavior easier to maintain.

Other misc changes

  • Formatter/lint/esmeta cleanup and ecmarkup signature fixes
  • Internal spec text and section ordering adjustments
  • Minor wording and algorithm-structure edits