syntax error by rest parameter of spread syntax
Author: misogihagiCreated Apr 11, 2022Updated Jun 9, 2022
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 ...
Source: jquery/esprima