From b0e9db8856adc75d7743b11705bc455a6606cf37 Mon Sep 17 00:00:00 2001
From: Rick Waldron <waldron.rick@gmail.com>
Date: Wed, 18 Jan 2017 18:18:57 -0500
Subject: [PATCH] Remove invalid tests on parameters vs arguments list

Ref #822
---
 .../params-trailing-comma-arguments.js        | 29 -----------------
 .../params-trailing-comma-arguments.js        | 29 -----------------
 .../params-trailing-comma-arguments.js        | 32 -------------------
 .../params-trailing-comma-arguments.js        | 32 -------------------
 .../params-trailing-comma-arguments.js        | 30 -----------------
 5 files changed, 152 deletions(-)
 delete mode 100644 test/language/expressions/function/params-trailing-comma-arguments.js
 delete mode 100644 test/language/expressions/generators/params-trailing-comma-arguments.js
 delete mode 100644 test/language/expressions/object/method-definition/params-trailing-comma-arguments.js
 delete mode 100644 test/language/statements/class/definition/params-trailing-comma-arguments.js
 delete mode 100644 test/language/statements/function/params-trailing-comma-arguments.js

diff --git a/test/language/expressions/function/params-trailing-comma-arguments.js b/test/language/expressions/function/params-trailing-comma-arguments.js
deleted file mode 100644
index 57fc7756d0..0000000000
--- a/test/language/expressions/function/params-trailing-comma-arguments.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (C) 2016 Jeff Morrison. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-/*---
-description: >
-  Check that trailing commas do not affect `arguments` in function
-  expression bodies.
-info: http://jeffmo.github.io/es-trailing-function-commas/
-author: Jeff Morrison <lbljeffmo@gmail.com>
----*/
-
-var f1 = function() {
-  assert.sameValue(
-    arguments.length,
-    1,
-    "Function expression called with 1 arg + trailing comma reports " +
-    "invalid arguments.length!"
-  );
-};
-f1(1,);
-
-var f2 = function() {
-  assert.sameValue(
-    arguments.length,
-    2,
-    "Function expression called with 2 arg + trailing comma reports " +
-    "invalid arguments.length!"
-  );
-};
-f2(1,2,);
diff --git a/test/language/expressions/generators/params-trailing-comma-arguments.js b/test/language/expressions/generators/params-trailing-comma-arguments.js
deleted file mode 100644
index 1014f93195..0000000000
--- a/test/language/expressions/generators/params-trailing-comma-arguments.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (C) 2016 Jeff Morrison. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-/*---
-description: >
-  Check that trailing commas do not affect `arguments` in function
-  expression bodies.
-info: http://jeffmo.github.io/es-trailing-function-commas/
-author: Jeff Morrison <lbljeffmo@gmail.com>
----*/
-
-var f1 = function*() {
-  assert.sameValue(
-    arguments.length,
-    1,
-    "Function expression called with 1 arg + trailing comma reports " +
-    "invalid arguments.length!"
-  );
-};
-f1(1,).next();
-
-var f2 = function*() {
-  assert.sameValue(
-    arguments.length,
-    2,
-    "Function expression called with 2 arg + trailing comma reports " +
-    "invalid arguments.length!"
-  );
-};
-f2(1,2,).next();
diff --git a/test/language/expressions/object/method-definition/params-trailing-comma-arguments.js b/test/language/expressions/object/method-definition/params-trailing-comma-arguments.js
deleted file mode 100644
index 8702d64803..0000000000
--- a/test/language/expressions/object/method-definition/params-trailing-comma-arguments.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (C) 2016 Jeff Morrison. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-/*---
-description: >
-  Check that trailing parameter commas do not affect `arguments` in object
-  method bodies.
-info: http://jeffmo.github.io/es-trailing-function-commas/
-author: Jeff Morrison <lbljeffmo@gmail.com>
----*/
-
-var obj = {
-  f1() {
-    assert.sameValue(
-      arguments.length,
-      1,
-      "Object method called with 1 arg + trailing comma reports " +
-      "invalid arguments.length!"
-    );
-  },
-
-  f2() {
-    assert.sameValue(
-      arguments.length,
-      2,
-      "Object method called with 2 arg + trailing comma reports " +
-      "invalid arguments.length!"
-    );
-  }
-};
-
-obj.f1(1,);
-obj.f2(1,2,);
diff --git a/test/language/statements/class/definition/params-trailing-comma-arguments.js b/test/language/statements/class/definition/params-trailing-comma-arguments.js
deleted file mode 100644
index 7cb654f032..0000000000
--- a/test/language/statements/class/definition/params-trailing-comma-arguments.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (C) 2016 Jeff Morrison. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-/*---
-description: >
-  Check that trailing commas in method parameter lists do not affect `arguments`
-  in class method bodies.
-info: http://jeffmo.github.io/es-trailing-function-commas/
-author: Jeff Morrison <lbljeffmo@gmail.com>
----*/
-
-class C {
-  f1() {
-    assert.sameValue(
-      arguments.length,
-      1,
-      "Class method called with 1 arg + trailing comma reports " +
-      "invalid arguments.length!"
-    );
-  }
-
-  f2() {
-    assert.sameValue(
-      arguments.length,
-      2,
-      "Class method called with 2 arg + trailing comma reports " +
-      "invalid arguments.length!"
-    );
-  }
-};
-
-(new C()).f1(1,);
-(new C()).f2(1,2,);
diff --git a/test/language/statements/function/params-trailing-comma-arguments.js b/test/language/statements/function/params-trailing-comma-arguments.js
deleted file mode 100644
index 830d03adbd..0000000000
--- a/test/language/statements/function/params-trailing-comma-arguments.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (C) 2016 Jeff Morrison. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-/*---
-description: >
-  Check that trailing commas do not affect `arguments` in function
-  declaration bodies.
-info: http://jeffmo.github.io/es-trailing-function-commas/
-author: Jeff Morrison <lbljeffmo@gmail.com>
----*/
-
-function f1() {
-  assert.sameValue(
-    arguments.length,
-    1,
-    "Function declaration called with 1 arg + trailing comma reports " +
-    "invalid arguments.length!"
-  );
-}
-
-function f2() {
-  assert.sameValue(
-    arguments.length,
-    2,
-    "Function declaration called with 2 arg + trailing comma reports " +
-    "invalid arguments.length!"
-  );
-}
-
-f1(1,);
-f2(1,2,);
-- 
GitLab