From 2903a4c88500e93ade96ebf4557f6ac15f7bf9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= <andre.bargull@gmail.com> Date: Thu, 11 Dec 2014 18:45:54 +0100 Subject: [PATCH] Revert 12.14-1 and 12.14-2 (Fixes #120) Assume tests run with Annex B semantics enabled. (Fixes #120) --- test/language/statements/try/12.14-1.js | 8 +++----- test/language/statements/try/12.14-2.js | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/test/language/statements/try/12.14-1.js b/test/language/statements/try/12.14-1.js index 413261c7e0..7ce7a1794d 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 911c101f4d..cd87e3c3c6 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"; -- GitLab