microsoft / microsoft/TypeScript
Add `es2026` as valid `target` and `lib`
@DanielRosenwasser is already working on this.
Since Aug 28, 2026.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
To quote the spec:
> ECMAScript 2026, the 17th edition, added `Math.sumPrecise` for summing an [iterable](https://tc39.es/ecma262/multipage/control-abstraction-objects.html#sec-iterable-interface) of Numbers of varying magnitude while minimizing precision loss; `Iterator.concat` for sequencing [iterators](https://tc39.es/ecma262/multipage/control-abstraction-objects.html#sec-iterator-interface); `Array.fromAsync` for constructing Arrays from [async iterables](https://tc39.es/ecma262/multipage/control-abstraction-objects.html#sec-asynciterable-interface) and other async sources; `Error.isError` for identifying error objects; methods to `Map.prototype` and `WeakMap.prototype` for providing a default value to use during retrieval when a key is not already present; methods to `Uint8Array` for converting to and from Strings of hexadecimal- and base64-encoded binary data; a parameter to `JSON.parse` revivers to access the matched segment of JSON source; and `JSON.rawJSON` for fine control over `JSON.stringify` output for primitive values.
We need to add the following:
* `Math.sumPrecise`
* `Iterator.concat`
* `JSON.rawJSON`
* An overload(?) for `JSON.stringify`
The following must be moved to an `es2026` lib:
* `Error.isError`
* `Map.prototype.*`
* `getOrInsert`
* `getOrInsertComputed`
* `WeakMap.prototype.*`
* `getOrInsert`
* `getOrInsertComputed`
* `Uint8Array.prototype.*`
* `toBase64`
* `setFromBase64`
* `toHex`
* `setFromHex`
* `Uint8Array.fromHex`
* `Uint8Array.fromBase64`
* `Array.fromAsync`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.