This repository was archived by the owner on Sep 1, 2026. It is now read-only.
Repository navigation
Port in ES2024 - #727
Merged
Merged
Port in ES2024#727
Conversation
Jake Bailey (jakebailey)
requested review from
Ryan Cavanaugh (RyanCavanaugh),
Andrew Branch (andrewbranch) and
Copilot
March 27, 2025 22:55
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request ports in ES2024 support as described in microsoft/TypeScript#58573. The changes introduce new compiler targets, update library mappings and baselines, adjust error messages, and update embedded resources to incorporate the ES2024 libraries.
- Add a new ScriptTarget (ES2024) and update corresponding enums and error messages.
- Update library maps, baselines, and generated/embedded resources to include ES2024 libraries.
- Adjust feature maps to reflect ES2024 additions.
Reviewed Changes
Copilot reviewed 54 out of 66 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| testdata/baselines/reference/submodule/conformance/callChainWithSuper(target=es2024).js | Adds baseline tests for optional chaining with super calls in ES2024. |
| testdata/baselines/reference/config/tsconfigParsing/reports errors for wrong type option and invalid enum value with jsonSourceFile api.js | Updates error message to recognize ES2024 as a valid target. |
| internal/tsoptions/enummaps.go | Updates enum mappings to include new ES2024 library entries. |
| internal/core/compileroptions.go | Introduces ScriptTargetES2024 to extend supported targets. |
| internal/compiler/program_test.go | Updates test expectations for the new ES2024 libraries. |
| internal/checker/utilities.go | Incorporates additional ES2024 features in the feature map. |
| internal/bundled/libs_generated.go | Updates generated libraries list to include ES2024 libraries. |
| internal/bundled/embed_generated.go | Updates embedded library resources with ES2024 entries while removing some redundant esnext entries. |
Files not reviewed (12)
- _submodules/TypeScript: Language not supported
- testdata/baselines/reference/submodule/compiler/mapGroupBy.symbols: Language not supported
- testdata/baselines/reference/submodule/compiler/mapGroupBy.symbols.diff: Language not supported
- testdata/baselines/reference/submodule/compiler/objectGroupBy.errors.txt: Language not supported
- testdata/baselines/reference/submodule/compiler/objectGroupBy.symbols: Language not supported
- testdata/baselines/reference/submodule/compiler/objectGroupBy.symbols.diff: Language not supported
- testdata/baselines/reference/submodule/compiler/promiseWithResolvers.symbols: Language not supported
- testdata/baselines/reference/submodule/compiler/promiseWithResolvers.symbols.diff: Language not supported
- testdata/baselines/reference/submodule/compiler/regExpWithOpenBracketInCharClass(target=es2015).errors.txt.diff: Language not supported
- testdata/baselines/reference/submodule/compiler/regExpWithOpenBracketInCharClass(target=es5).errors.txt.diff: Language not supported
- testdata/baselines/reference/submodule/compiler/regularExpressionScanning(target=es2015).errors.txt.diff: Language not supported
- testdata/baselines/reference/submodule/compiler/regularExpressionScanning(target=es5).errors.txt.diff: Language not supported
Comments suppressed due to low confidence (2)
internal/tsoptions/enummaps.go:101
- Please verify if mapping 'esnext.promise' to 'lib.es2024.promise.d.ts' is intentional, as it deviates from the previous pattern and might warrant establishing a separate 'es2024.promise' key.
{Key: "esnext.promise", Value: "lib.es2024.promise.d.ts"},
internal/bundled/embed_generated.go:175
- Ensure that the removal of embedded files for 'lib.esnext.object.d.ts', 'lib.esnext.promise.d.ts', 'lib.esnext.regexp.d.ts', and 'lib.esnext.string.d.ts' does not negatively impact consumers that might still rely on these resources.
Removal of esnext.* embedded files
Andrew Branch (andrewbranch)
approved these changes
Mar 28, 2025
Jake Bailey (jakebailey)
added a commit
to jakebailey/TypeScript
that referenced
this pull request
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This ports in microsoft/TypeScript#58573.