2ality – JavaScript and more
フィード
Ecma International approves ECMAScript 2024: What’s new?
2ality – JavaScript and more
<p>On 26 June 2024, the 127th Ecma General Assembly approved the ECMAScript 2024 language specification (<a href="https://ecma-international.org/news/ecma-international-approves-new-standards-9/">press release</a>, <a href="https://github.com/tc39/ecma262/releases/tag/es2024">GitHub release</a>), which means that it’s officially a standard now.</p><p>This blog post explains what’s new.</p>
5ヶ月前
ECMAScript 2024 features: resizing and transferring ArrayBuffers
2ality – JavaScript and more
<p>In this blog post, we examine ArrayBuffer features that were introduced in ECMAScript 2024:</p><ul><li><a href="https://github.com/tc39/proposal-resizablearraybuffer">“In-place resizable ArrayBuffers”</a>, proposed by Shu-yu Guo</li><li><a href="https://github.com/tc39/proposal-arraybuffer-transfer">“ArrayBuffer.prototype.transfer and friends”</a> proposed by Shu-yu Guo, Jordan Harband and Yagiz Nizipli</li></ul>
6ヶ月前
ECMAScript 2023 feature: symbols as WeakMap keys
2ality – JavaScript and more
<p>In this blog post, we take a look at the ECMAScript 2023 feature <a href="https://github.com/tc39/proposal-symbols-as-weakmap-keys">“Symbols as WeakMap keys”</a> – which was proposed by Robin Ricard, Rick Button, Daniel Ehrenberg, Leo Balter, Caridy Patiño, Rick Waldron, and Ashley Claymore.</p>
6ヶ月前
ECMAScript 2025 feature: duplicate named capturing groups for regular expressions
2ality – JavaScript and more
<p>In this blog post, we take a look at the ECMAScript 2025 feature <a href="https://github.com/tc39/proposal-duplicate-named-capturing-groups">“Duplicate named capturing groups”</a> which was proposed by Kevin Gibbons.</p><p>It’s a feature for regular expressions that enables us to use the same capturing group name more than once.</p>
6ヶ月前
ECMAScript 2024 feature: <code>Promise.withResolvers()</code>
2ality – JavaScript and more
<p>In this blog post we take a look at the ECMAScript 2024 feature <a href="https://github.com/tc39/proposal-promise-with-resolvers">“<code>Promise.withResolvers</code>”</a> (proposed by Peter Klecha). It provides a new way of directly creating Promises, as an alternative to <code>new Promise(...)</code>.</p>
6ヶ月前