Skip to content

XS allows trailing comma in Expressions #315

@jugglinmike

Description

@jugglinmike

XS parses and evaluates the following input without reporting an error:

0,;

It interprets this input as though the comma was not present.

This behavior also influences ASI semantics. XS parses and evaluates the following input without reporting an error, again behaving as though the comma was not present:

0,
if(0);

Both behaviors are consistent between the Script and Module goals.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedissue reported has been reproducedfixed - please verifyIssue has been fixed. Please verify and close.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions