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.
|
||||
/*---
|
||||
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() {}
|
||||
|
|
|
@ -16,7 +16,7 @@ class C {
|
|||
"Class method called with 1 arg + trailing comma reports " +
|
||||
"invalid arguments.length!"
|
||||
);
|
||||
},
|
||||
}
|
||||
|
||||
f2() {
|
||||
assert.sameValue(
|
||||
|
|
|
@ -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,) {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue