tests/auto/qml/ecmascripttests/test262/test/language/expressions/call/trailing-comma.js
raw| 1 | // Copyright (C) 2016 Jeff Morrison. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | /*--- |
| 4 | description: > |
| 5 | Check that trailing commas are permitted after spread arguments |
| 6 | in a call expression. |
| 7 | info: http://jeffmo.github.io/es-trailing-function-commas/ |
| 8 | author: Jeff Morrison <[email protected]> |
| 9 | ---*/ |
| 10 | |
| 11 | function foo() {} |
| 12 | foo(...[],); |