From 835c202b366284fd1c1072aa30419b96e69b4096 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Sun, 23 Sep 2018 20:48:25 -0400 Subject: [PATCH] Remove redundant and irrelevant tests Two tests placed within the "variable" directory do not include a variable declaration. Because the behavior they assert is covered by an existing test (test/language/arguments-object/10.5-1gs.js), they may be removed without reducing coverage. --- test/language/statements/variable/12.2.1-13-s.js | 13 ------------- test/language/statements/variable/12.2.1-15-s.js | 15 --------------- 2 files changed, 28 deletions(-) delete mode 100644 test/language/statements/variable/12.2.1-13-s.js delete mode 100644 test/language/statements/variable/12.2.1-15-s.js diff --git a/test/language/statements/variable/12.2.1-13-s.js b/test/language/statements/variable/12.2.1-13-s.js deleted file mode 100644 index 5e9fc3a6d5..0000000000 --- a/test/language/statements/variable/12.2.1-13-s.js +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 12.2.1-13-s -description: arguments assignment throws SyntaxError in strict mode -flags: [onlyStrict] ----*/ - - -assert.throws(SyntaxError, function() { - eval('function foo() { arguments = 42; }; foo()'); -}); diff --git a/test/language/statements/variable/12.2.1-15-s.js b/test/language/statements/variable/12.2.1-15-s.js deleted file mode 100644 index 8447267316..0000000000 --- a/test/language/statements/variable/12.2.1-15-s.js +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 12.2.1-15-s -description: > - arguments - a function expr assigning into 'arguments' throws a - SyntaxError in strict mode -flags: [onlyStrict] ----*/ - - -assert.throws(SyntaxError, function() { - eval('(function () {arguments = 42;})()'); -});