Skip to content
Snippets Groups Projects
Commit 4fd91d89 authored by Josh Wolfe's avatar Josh Wolfe Committed by Tom Care
Browse files

fix incorrect tests for trailing commas (#787)

parent 8982c3c3
No related branches found
No related tags found
No related merge requests found
......@@ -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,) {}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment