Trailing comma with spread operator

Hi, the following code:

const c = [
  ...a,
  ...b,
];

Gets translated to:

var c = a.concat( b,
);

Which leads to a SyntaxError due to the trailing comma.