mirror of https://github.com/tc39/test262.git
Revert 12.14-1 and 12.14-2 (Fixes #120)
Assume tests run with Annex B semantics enabled. (Fixes #120)
This commit is contained in:
parent
49abae4f5e
commit
2903a4c885
|
@ -7,14 +7,12 @@
|
||||||
/*---
|
/*---
|
||||||
es5id: 12.14-1
|
es5id: 12.14-1
|
||||||
description: >
|
description: >
|
||||||
var initializer in catch with same name as catch parameter is a
|
catch doesn't change declaration scope - var initializer in catch
|
||||||
SyntaxError
|
with same name as catch parameter changes parameter
|
||||||
negative: ^((?!NotEarlyError).)*$
|
features: [AnnexB]
|
||||||
includes: [runTestCase.js]
|
includes: [runTestCase.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw NotEarlyError;
|
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
foo = "prior to throw";
|
foo = "prior to throw";
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -7,14 +7,12 @@
|
||||||
/*---
|
/*---
|
||||||
es5id: 12.14-2
|
es5id: 12.14-2
|
||||||
description: >
|
description: >
|
||||||
var initializer in catch with same name as catch parameter is a
|
catch doesn't change declaration scope - var initializer in catch
|
||||||
SyntaxError
|
with same name as catch parameter changes parameter
|
||||||
negative: ^((?!NotEarlyError).)*$
|
features: [AnnexB]
|
||||||
includes: [runTestCase.js]
|
includes: [runTestCase.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw NotEarlyError;
|
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
function capturedFoo() {return foo};
|
function capturedFoo() {return foo};
|
||||||
foo = "prior to throw";
|
foo = "prior to throw";
|
||||||
|
|
Loading…
Reference in New Issue