mirror of https://github.com/tc39/test262.git
Remove redundant test
This behavior is covered by another test in this directory: `arguments-strict-single.js`. Although the syntax error happens to occur within the body of a function expression, this distinction is not significant enough to warrant the test's presence nor does it motivate the introduction of many similar negative syntax tests which are currently unavailable.
This commit is contained in:
parent
6b00c8fbfe
commit
b819c597ab
|
@ -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-14-s
|
|
||||||
description: >
|
|
||||||
arguments - a function expr declaring a var named 'arguments'
|
|
||||||
throws SyntaxError in strict mode
|
|
||||||
flags: [onlyStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
assert.throws(SyntaxError, function() {
|
|
||||||
eval('(function (){var arguments;});');
|
|
||||||
});
|
|
Loading…
Reference in New Issue