Skip to content

syntax error by rest parameter of spread syntax #2113

Open
@misogihagi

Description

@misogihagi

hello
sorry if my misleading, my code is not parsed by esprima

Steps to reproduce

copy and paste below to demo

var ops={
    a:1,
    b:2
}

function fn(ops){
    console.log(ops)
}

fn({...ops})

Actual output

Error: Line 10: Unexpected token ...

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