mirror of
https://github.com/tc39/test262.git
synced 2025-07-05 13:14:38 +02:00
remove garbage: these try/catch tests don't actually test the section cited (or anything for that matter)
Cited: https://www.ecma-international.org/ecma-262/5.1/index.html#sec-12.14.1 Present: https://tc39.github.io/ecma262/#sec-strict-mode-of-ecmascript > It is a SyntaxError if a CatchParameter occurs within strict mode code and BoundNames of CatchParameter contains either eval or arguments (13.15.1).
This commit is contained in:
parent
e467c83aa0
commit
bcd308b553
@ -1,20 +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.14.1-4-s
|
|
||||||
description: >
|
|
||||||
Strict Mode - SyntaxError isn't thrown if a TryStatement with a
|
|
||||||
Catch occurs within strict code and the Identifier of the Catch
|
|
||||||
production is EVAL
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var isInstance = false;
|
|
||||||
|
|
||||||
try {
|
|
||||||
throw new Error("...");
|
|
||||||
} catch (EVAL) {
|
|
||||||
isInstance = EVAL instanceof Error;
|
|
||||||
}
|
|
||||||
|
|
||||||
assert(isInstance);
|
|
@ -1,20 +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.14.1-5-s
|
|
||||||
description: >
|
|
||||||
Strict Mode - SyntaxError isn't thrown if a TryStatement with a
|
|
||||||
Catch occurs within strict code and the Identifier of the Catch
|
|
||||||
production is Arguments
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var isInstance = false;
|
|
||||||
|
|
||||||
try {
|
|
||||||
throw new Error("...");
|
|
||||||
} catch (Arguments) {
|
|
||||||
isInstance = Arguments instanceof Error;
|
|
||||||
}
|
|
||||||
|
|
||||||
assert(isInstance);
|
|
@ -1,20 +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.14.1-6-s
|
|
||||||
description: >
|
|
||||||
Strict Mode - SyntaxError isn't thrown if a TryStatement with a
|
|
||||||
Catch occurs within strict code and the Identifier of the Catch
|
|
||||||
production is ARGUMENTS
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var isInstance = false;
|
|
||||||
|
|
||||||
try {
|
|
||||||
throw new Error("...");
|
|
||||||
} catch (ARGUMENTS) {
|
|
||||||
isInstance = ARGUMENTS instanceof Error;
|
|
||||||
}
|
|
||||||
|
|
||||||
assert(isInstance);
|
|
Loading…
x
Reference in New Issue
Block a user