CodeLiveStudio

JavaScript

ES2026 Is Out: 7 New JavaScript Features (Temporal Isn't One)

ES2026 was approved on 30 June 2026 with exactly seven features — and no, Temporal is not one of them. What actually shipped, what each one replaces, and how to test them in your browser today.

9 min readBy CodeLive Studio Team

Quick answer

ECMAScript 2026 was approved on 30 June 2026 and adds exactly seven features: Array.fromAsync, Error.isError, Math.sumPrecise, base64/hex methods on Uint8Array, Iterator.concat, JSON.parse source text access with JSON.rawJSON(), and getOrInsert upserts on Map. Temporal missed the cutoff — it is slated for ES2027, not this edition.

ES2026 JavaScript features: dark editorial illustration of code panels with a glowing ES2026 badge

If you read anything about ES2026 that was published before this summer, here is the uncomfortable truth: a lot of it is wrong. Dozens of articles — including some from otherwise careful publications — confidently announced that Temporal, the long-awaited replacement for Date, had made it into ECMAScript 2026. It did not. We went back to the actual sources: the spec was approved by Ecma International on 30 June 2026 as the 17th edition of ECMA-262, and it contains exactly seven features. Temporal is not one of them.

This guide is the correction and the practical summary in one. For each of the seven features you get what it does, the workaround it replaces, and a snippet you can run immediately — no build step, no install. At the end there is a single feature-detection script that tells you what your own browser supports in one run, which is more useful than any compatibility table you will read this month.

The seven features that made the 2026 cut

Every feature below reached Stage 4 before the specification cutoff and is part of the approved edition:

  • Array.fromAsync — turn any async iterable (or iterator of promises) into an array in one call
  • Error.isError — the missing typeof-style check: is this value actually an Error?
  • Math.sumPrecise — sum numbers without floating-point drift
  • Uint8Array base64 and hex methods — toBase64(), toHex(), fromBase64(), fromHex()
  • Iterator.concat — chain lazy iterators without building intermediate arrays
  • JSON.parse source text access — revivers finally see the raw source text, and JSON.rawJSON() feeds it back
  • Upsert on Map — map.getOrInsert(key, fallback) and its computed sibling replace the has/get/set dance

JSON.parse source text access: the round-trip fix eight years in the making

This is the feature anyone who builds JSON tooling has been waiting for. Until now, a reviver in JSON.parse only received the parsed value — if your JSON contained the number 19.99, JavaScript gave you the closest double, and details like trailing zeros or extra precision were unrecoverable. Round-tripping a document through parse-and-stringify could silently change its digits.

ES2026 hands the reviver a third argument: the raw source text of that value. Combined with the new JSON.rawJSON(), you can keep the original bytes exactly as the author wrote them:

const raw = '{"price": 19.990000000000001}';

const doc = JSON.parse(raw, (key, value, source) =>
  key === "price" ? JSON.rawJSON(source) : value
);

JSON.stringify(doc);
// '{"price":19.990000000000001}' — the original digits survive
The reviver's third argument carries the untouched source text; JSON.rawJSON() marks it to be emitted verbatim by stringify.

Array.fromAsync and Iterator.concat: iteration grows up

Iterator.concat is the sync counterpart for the iterator helpers that landed in ES2025: it chains several lazy iterators into one, without materialising any of them into arrays first. Where you used to spread three collections into a new array just to loop over them once, you can now chain them for free:

for (const item of Iterator.concat(a.values(), b.values(), c.values())) {
  process(item); // walks a, then b, then c — nothing copied
}

Error.isError, Math.sumPrecise, and the small fixes that matter

Checking whether a caught value is a real Error has always been awkward — typeof x === "object" says nothing, and x instanceof Error breaks across realms. ES2026 adds the obvious thing: Error.isError(value). One caveat we verified while writing this: as of December 2026 it has shipped in Chromium and Firefox but is still missing in Safari, so feature-detect it for now (the detector below does exactly that).

Math.sumPrecise fixes the other small eternal annoyance — summing floats. The classic reduce produces 0.6000000000000001 for 0.1 + 0.2 + 0.3; sumPrecise returns the correctly rounded 0.6. Python developers have had math.fsum for years; JavaScript now has the same idea built in:

[0.1, 0.2, 0.3].reduce((a, b) => a + b, 0); // 0.6000000000000001
Math.sumPrecise([0.1, 0.2, 0.3]);            // 0.6

Uint8Array grows base64 and hex methods

Converting binary data to text used to mean btoa() gymnastics that only worked for Latin-1, or hand-rolled hex loops. The typed-array spec now includes four direct methods — toBase64(), toHex(), and their fromBase64()/fromHex() static counterparts. For client-side tools that move data around without a server (the whole idea behind this site's privacy model), this removes some of the last reasons to copy helper functions from Stack Overflow:

const bytes = new Uint8Array([72, 101, 108, 108, 111]);

bytes.toBase64();                  // "SGVsbG8="
bytes.toHex();                     // "48656c6c6f"
Uint8Array.fromBase64("SGVsbG8="); // Uint8Array [72, 101, 108, 108, 111]

The Map upgrade nobody is talking about: upsert

The least glamorous addition may end up the most used. getOrInsert(key, fallback) returns the existing value for a key or stores the fallback first — collapsing the three-line has/get/set pattern that appears in essentially every word-count, cache and grouping function ever written. There is also getOrInsertComputed(key, fn) for cases where the default is expensive to build:

// Before ES2026
if (!counts.has(word)) counts.set(word, 0);
counts.set(word, counts.get(word) + 1);

// ES2026
counts.set(word, counts.getOrInsert(word, 0) + 1);

Run this in your browser: the ES2026 detector

Compatibility tables go stale; your browser does not. Open the JavaScript playground, paste this, and run — you get your engine's ES2026 report in milliseconds. On current Chrome, Edge, Firefox and most mobile browsers you should see seven green lines; on Safari, expect Error.isError to be the missing one for now.

const checks = {
  "Array.fromAsync":      () => Array.fromAsync,
  "Error.isError":        () => Error.isError,
  "Math.sumPrecise":      () => Math.sumPrecise,
  "Uint8Array.toBase64":  () => Uint8Array.prototype.toBase64,
  "Uint8Array.toHex":     () => Uint8Array.prototype.toHex,
  "Iterator.concat":      () => Iterator.concat,
  "JSON.rawJSON":         () => JSON.rawJSON,
  "Map.getOrInsert":      () => Map.prototype.getOrInsert,
};

for (const [name, get] of Object.entries(checks)) {
  console.log((get() ? "OK   " : "MISS ") + name);
}
Paste-and-run feature detection — no libraries, no build step, honest output.

What is NOT in ES2026 (and why so many articles get it wrong)

Temporal and Explicit Resource Management (the "using" declarations) are the two proposals everyone expected in 2026 — and both missed the edition. The mechanism is simple once you know it: TC39 finishes proposals at its meetings, but each annual edition only incorporates proposals that reached Stage 4 before its specification cutoff. Both proposals were finalised after that cutoff, appear in TC39's own finished-proposals table with an expected publication year of 2027, and will ship in ES2027 instead.

The wave of articles claiming otherwise came from pre-approval speculation in late 2025, when Temporal looked certain to make the cut — and nobody bothered to correct the record after 30 June. That is also why you should treat any "what's new in ES2026" list published before this summer with suspicion: if it mentions Temporal, it was written from a prediction, not the spec.

One more thing worth knowing about this edition: it is the first in years with no new syntax at all. All seven features are runtime APIs, which means no transpiler changes, no Babel updates, no build configuration — if your engine supports them, you just call them. Yearly editions look small precisely because the process is disciplined: finished proposals wait for the next train, and this year the train left without Temporal.

Should you use ES2026 features in production?

For six of the seven features, the pragmatic answer in late 2026 is yes, with a one-line feature-detect where it matters. Because none of them introduce syntax, adopting them is a runtime decision, not a tooling project: the detector above doubles as your support matrix, and a single typeof check guards the one Safari gap. If you need to clean up the JSON documents this article's first feature lets you preserve, the JSON formatter does the formatting side of that job in the same browser tab.

If you are newer to JavaScript and this article assumed more than you knew, start with how to run JavaScript in your browser — everything here can be tried with nothing more than that page and a paste.

FeatureWhat it replacesSupport, December 2026
Array.fromAsyncManual for-await push loopsAll major engines
Error.isErrorinstanceof / duck-typing checksChromium + Firefox (Safari pending)
Math.sumPrecisereduce() with drift, Kahan workaroundsAll major engines
Uint8Array base64/hexbtoa() gymnastics, hand-rolled hexAll major engines
Iterator.concatSpreading into arrays to merge lazilyAll major engines
JSON.parse source accessLossy number round-tripsAll major engines
Map.getOrInsert (upsert)has/get/set three-stepAll major engines
Support summary per published compatibility tables in December 2026 — the detector script above verifies it on your actual browser in one run.

Try everything from this article live

The CodeLive Studio editor runs the examples above with a one-second live preview no account, no install.

Open the free editor

Keep reading

Frequently asked questions

What are the seven new features in ES2026?

Array.fromAsync, Error.isError, Math.sumPrecise, base64/hex methods on Uint8Array (toBase64, toHex, fromBase64, fromHex), Iterator.concat, JSON.parse source text access with JSON.rawJSON(), and getOrInsert/getOrInsertComputed on Map and WeakMap. The edition was approved on 30 June 2026.

Is Temporal part of ES2026?

No. Temporal reached Stage 4 after the ES2026 specification cutoff and carries an expected publication year of 2027 in TC39's finished-proposals table. Articles claiming it was in ES2026 were pre-approval speculation published in late 2025.

Can I use ES2026 features in every browser today?

All seven features are runtime APIs, not syntax, so nothing blocks adoption at build time. As of December 2026, six of the seven are available across all major engines; Error.isError has not shipped in Safari yet, so feature-detect it.

Why does ES2026 only add seven features?

TC39 ships a new edition every June, and each one only includes proposals that reached Stage 4 before its specification cutoff. Finished-but-late proposals wait for the next edition, which is why recent editions are small and precisely defined.

Found this useful? Share it

CodeLive Studio Team

The team behind CodeLive Studio, a free suite of client-side developer tools. Every guide is written from hands-on testing in the same browser tools you can open above — no installs, no accounts, nothing uploaded.

More about CodeLive Studio