js/src/tests/test262/ch10/10.2/10.2.2/S10.2.2_A1_T1.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     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_T1.js
    10  * @description Checking scope chain containing function declarations
    11  */
    13 var x = 0;
    15 function f1(){
    16   var x = 1;
    17   function f2(){
    18     return x;
    19   };
    20   return f2();
    21 }
    23 if(!(f1() === 1)){
    24   $ERROR("#1: Scope chain disturbed");
    25 }

mercurial