fix incorrect tests for trailing commas (#787)

This commit is contained in:
Josh Wolfe 2016-11-11 10:44:38 -07:00 committed by Tom Care
parent 8982c3c3ab
commit 4fd91d8904
3 changed files with 4 additions and 7 deletions

View File

@ -2,13 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Check that trailing commas are not permitted after spread arguments
Check that trailing commas are permitted after spread arguments
in a call expression.
info: http://jeffmo.github.io/es-trailing-function-commas/
author: Jeff Morrison <lbljeffmo@gmail.com>
negative:
phase: early
type: SyntaxError
---*/
function foo() {}

View File

@ -16,7 +16,7 @@ class C {
"Class method called with 1 arg + trailing comma reports " +
"invalid arguments.length!"
);
},
}
f2() {
assert.sameValue(

View File

@ -6,6 +6,6 @@ info: http://jeffmo.github.io/es-trailing-function-commas/
author: Jeff Morrison <lbljeffmo@gmail.com>
---*/
class C {
one(a,) {},
two(a,b,) {},
one(a,) {}
two(a,b,) {}
}