Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /// Copyright (c) 2012 Ecma International. All rights reserved.
2 /// Ecma International makes this code available under the terms and conditions set
3 /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
4 /// "Use Terms"). Any redistribution of this code must retain the above
5 /// copyright and this notice and otherwise comply with the Use Terms.
6 /**
7 * local vars must not be visible outside with block
8 * local functions must not be visible outside with block
9 * local function expresssions should not be visible outside with block
10 * local vars must shadow outer vars
11 * local functions must shadow outer functions
12 * local function expresssions must shadow outer function expressions
13 * eval should use the appended object to the scope chain
14 *
15 * @path ch12/12.14/12.14-3.js
16 * @description catch doesn't change declaration scope - var declaration are visible outside when name different from catch parameter
17 */
20 function testcase() {
21 try {
22 throw new Error();
23 }
24 catch (e) {
25 var foo = "declaration in catch";
26 }
28 return foo === "declaration in catch";
29 }
30 runTestCase(testcase);