bublejs / buble

https://buble.surge.sh
MIT License
871 stars 64 forks source link

no semi style bug #204

Open create-share opened 5 years ago

create-share commented 5 years ago

Input:

const oneObj = {
  arr: []
}
oneObj.arr.push(...[1,2,3])

Output:

var ref;
var oneObj = {
  arr: []
}
(ref = oneObj.arr).push.apply(ref, [1,2,3])

Should be:

var ref;
var oneObj = {
  arr: []
}; // <--
(ref = oneObj.arr).push.apply(ref, [1,2,3])