2016-07-28 21:32:03 +02:00
|
|
|
// Copyright (C) 2016 Jeff Morrison. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
description: >
|
|
|
|
Check that trailing commas are not permitted after spread arguments
|
|
|
|
in a call expression.
|
|
|
|
info: http://jeffmo.github.io/es-trailing-function-commas/
|
|
|
|
author: Jeff Morrison <lbljeffmo@gmail.com>
|
2016-01-31 00:57:28 +01:00
|
|
|
negative:
|
|
|
|
phase: early
|
|
|
|
type: SyntaxError
|
2016-07-28 21:32:03 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
function foo() {}
|
|
|
|
foo(...[],);
|