Skip to content

Unexpected token ||= #261

@Tam

Description

@Tam

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions