Skip to content

Bug: Parser: soaks/prototype shorthands in object spreads #5291

@helixbass

Description

@helixbass

This was raised by helixbass/prettier-plugin-coffeescript#165

It's pretty clearly a parsing bug that these don't parse:

{a::b...}
{a?.b...}
{a?()...}

while the corresponding array/argument spreads work:

[a::b...]
[a?.b...]
[a?()...]

f(a::b...)
f(a?.b...)
f(a?()...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions