News for hackers. Stuff that matters.
Re:Left-Pad (2024) by bakkoting on Wednesday June 11, 2025 @05:23PM (#44251968)
> Apparently it has now finally arrived in ES2026

ES2017 [1]. The MDN docs always link the latest version of the spec; the year in the link doesn't correspond to the version where it was added. The proposal was already mostly done at the time of the incident [2]

[1] https://tc39.es/ecma262/2017/#sec-string.prototype.padstart [2] https://github.com/tc39/proposal-string-pad-start-end

Re:Left-Pad (2024) by xnorswap on Thursday June 12, 2025 @04:58AM (#44255468)
Oh, I see, sorry the "Specification" section is definitely misleading then by not also linking to the earliest specification it was included in.