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.
This commit is contained in:
Mike Pennisi 2018-09-23 20:48:25 -04:00
parent 161ebcb76b
commit 835c202b36
2 changed files with 0 additions and 28 deletions

View File

@ -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()');
});

View File

@ -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;})()');
});