diff --git a/test/language/statements/try/12.14-1.js b/test/language/statements/try/12.14-1.js index 413261c7e0de300cb061184f5c0e27463fb9a82d..7ce7a1794d644d26af7769862ecf8a5f3eb22c75 100644 --- a/test/language/statements/try/12.14-1.js +++ b/test/language/statements/try/12.14-1.js @@ -7,14 +7,12 @@ /*--- es5id: 12.14-1 description: > - var initializer in catch with same name as catch parameter is a - SyntaxError -negative: ^((?!NotEarlyError).)*$ + catch doesn't change declaration scope - var initializer in catch + with same name as catch parameter changes parameter +features: [AnnexB] includes: [runTestCase.js] ---*/ -throw NotEarlyError; - function testcase() { foo = "prior to throw"; try { diff --git a/test/language/statements/try/12.14-2.js b/test/language/statements/try/12.14-2.js index 911c101f4d54138baae124afd4f07d8cb320be7b..cd87e3c3c6863744392a76f5f348e545a7f260fa 100644 --- a/test/language/statements/try/12.14-2.js +++ b/test/language/statements/try/12.14-2.js @@ -7,14 +7,12 @@ /*--- es5id: 12.14-2 description: > - var initializer in catch with same name as catch parameter is a - SyntaxError -negative: ^((?!NotEarlyError).)*$ + catch doesn't change declaration scope - var initializer in catch + with same name as catch parameter changes parameter +features: [AnnexB] includes: [runTestCase.js] ---*/ -throw NotEarlyError; - function testcase() { function capturedFoo() {return foo}; foo = "prior to throw";