Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground: Target ESNext setting displays "ES3" when loaded #1136

Closed
tchetwin opened this issue Sep 25, 2020 · 2 comments
Closed

Playground: Target ESNext setting displays "ES3" when loaded #1136

tchetwin opened this issue Sep 25, 2020 · 2 comments
Labels
Playground Issues that affect the Playground

Comments

@tchetwin
Copy link

The query parameter target=99 should select Target: "ESNext", but it displays "ES3" in the settings. (It turns out it's actually correctly set to ESNext under the hood as can be seen in the example below based on the down-level).

Repro:

When setting the TS Config -> Target setting to ES2020 (for example):
✔ the query params update with target=7 (for example)
✔ loading this URL results in ES2020 being selected example

When setting the TS Config -> Target setting to ESNext:
✔ the query params update with target=99
❌ loading this URL results in ES3 being displayed as selected example

The expected behaviour in the latter case is that "ESNext" will be displayed in the settings as well as used by the compiler.

@tchetwin tchetwin added the Playground Issues that affect the Playground label Sep 25, 2020
@mjpieters
Copy link

Ah, looks like I filed a dupe. Sorry!

@typescript-bot
Copy link
Collaborator

Hello! As per #2804, we are automatically closing all open issues. Please see #2804 for a description of what issues and PRs can be accepted going forward.

@typescript-bot typescript-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Playground Issues that affect the Playground
Projects
None yet
Development

No branches or pull requests

3 participants