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

Unexpected token ||= #261

Open
Tam opened this issue May 28, 2024 · 0 comments
Open

Unexpected token ||= #261

Tam opened this issue May 28, 2024 · 0 comments

Comments

@Tam
Copy link

Tam commented May 28, 2024

🐛 Bug Report

Scanner throws an "Unexpected token" error when coming across Logical OR assignment ||=.

To Reproduce

Scan code including the following (or something similar):

let test = false;
test ||= null;

Expected behavior

The scanner should have no problem parsing the code since it's valid JS.

Your Environment

  • runtime version: Node v21.6.2
  • i18next version: i18next-scanner 4.4.0, i18next 23.11.5
  • os: Mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant