Changelog

tc39/ecma262 · · 2 commits

Promise resolver cleanup and editorial wording

Clarified Promise resolving-function lifetime semantics and tightened property-descriptor wording in the spec.

Make resolver closures release the Promise once used (bakkot7bbfd4b)

The abstract operation for CreateResolvingFunctions now uses a single promiseOrEmpty record and clears it after the first call, making it explicit that once a Promise is resolved or rejected, the resolver closures no longer need to keep the Promise alive. This is an editorial/spec-clarity change, but it sharpens an important implementation hint about lifetime and GC behavior.

Clarify per-field updates in ValidateAndApplyPropertyDescriptor (nicolo-ribaudoeef2528)

The spec now says to iterate over each field name of the descriptor and set the matching attribute, instead of the more ambiguous “each field” phrasing. This is a wording cleanup that makes the algorithm easier to read without changing behavior.

Other misc changes

  • None.