mirror of https://github.com/tc39/test262.git
fix incorrect tests for trailing commas (#787)
This commit is contained in:
parent
8982c3c3ab
commit
4fd91d8904
|
@ -2,13 +2,10 @@
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Check that trailing commas are not permitted after spread arguments
|
Check that trailing commas are permitted after spread arguments
|
||||||
in a call expression.
|
in a call expression.
|
||||||
info: http://jeffmo.github.io/es-trailing-function-commas/
|
info: http://jeffmo.github.io/es-trailing-function-commas/
|
||||||
author: Jeff Morrison <lbljeffmo@gmail.com>
|
author: Jeff Morrison <lbljeffmo@gmail.com>
|
||||||
negative:
|
|
||||||
phase: early
|
|
||||||
type: SyntaxError
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
function foo() {}
|
function foo() {}
|
||||||
|
|
|
@ -16,7 +16,7 @@ class C {
|
||||||
"Class method called with 1 arg + trailing comma reports " +
|
"Class method called with 1 arg + trailing comma reports " +
|
||||||
"invalid arguments.length!"
|
"invalid arguments.length!"
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
|
|
||||||
f2() {
|
f2() {
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
|
|
@ -6,6 +6,6 @@ info: http://jeffmo.github.io/es-trailing-function-commas/
|
||||||
author: Jeff Morrison <lbljeffmo@gmail.com>
|
author: Jeff Morrison <lbljeffmo@gmail.com>
|
||||||
---*/
|
---*/
|
||||||
class C {
|
class C {
|
||||||
one(a,) {},
|
one(a,) {}
|
||||||
two(a,b,) {},
|
two(a,b,) {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue