Merge pull request #137 from anba/issue-120/use-annexb-semantics

Revert 12.14-1 and 12.14-2 (Fixes #120)
This commit is contained in:
Brian Terlson 2014-12-11 16:39:28 -08:00
commit a8bfcab167
2 changed files with 6 additions and 10 deletions

View File

@ -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 {

View File

@ -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";