Skip to content

Correctly parse RegExp literals in places where they should be allowed. #563

Closed
@dbatyai

Description

@dbatyai

Currently we fail to parse RegExp literals in some places, where they should be allowed.
For example

if (true) /abc/.exec("abc");

if (true) {} /abc/.exec("abc");

var a
/abc/.exec("abc");

should all be valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourparserRelated to the JavaScript parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions