Skip to content

XS incorrectly accepts assignment/binding patterns {...rest,} #1673

Description

@gibson042

Environment: XS 17.9.1, slot 32 bytes, ID 4 bytes

Description
Object destructuring does not conform with the ECMAScript specification.

Steps to Reproduce

let rest;
for({ ...rest, } of []);
print("EVALUATED");

Actual behavior

EVALUATED

Expected behavior
SyntaxError

Other information
spec link: Destructuring Assignment
test262 pull request: tc39/test262#5102

Metadata

Metadata

Assignees

No one assigned

    Labels

    conformancebehavior does not match standard

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions