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

Not ES2020 #605

Closed
weaweawe01 opened this issue May 17, 2024 · 1 comment
Closed

Not ES2020 #605

weaweawe01 opened this issue May 17, 2024 · 1 comment

Comments

@weaweawe01
Copy link

espree.tokenize("alert(1n)")
Uncaught [SyntaxError: Identifier directly after number
] {
index: 7,
lineNumber: 1,
column: 8
}

@aladdin-add
Copy link
Member

bigint is supported, you need to pass the ecmaVersion >= 2020 or "latest".

espree.tokenize("1n", {ecmaVersion: 2020});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants