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 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * Every execution context has associated with it a scope chain.
6 * A scope chain is a list of objects that are searched when evaluating an
7 * Identifier
8 *
9 * @path ch10/10.2/10.2.2/S10.2.2_A1_T2.js
10 * @description Checking scope chain containing function declarations
11 */
13 var x = 0;
15 function f1(){
16 function f2(){
17 return x;
18 };
19 return f2();
20 }
22 if(!(f1() === 0)){
23 $ERROR("#1: Scope chain disturbed");
24 }