js/src/tests/test262/ch13/13.2/S13.2_A2_T1.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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  * Nested function are admitted
     6  *
     7  * @path ch13/13.2/S13.2_A2_T1.js
     8  * @description Nesting level is two
     9  */
    11 var __JEDI="jedi";
    13 function __FUNC(){
    14     function __GUNC(){
    15         return arguments[0];
    16     };
    18     return __GUNC;
    19 };
    21 //////////////////////////////////////////////////////////////////////////////
    22 //CHECK#1
    23 if (__FUNC()(__JEDI) !== __JEDI) {
    24 	$ERROR('#1: __FUNC()(__JEDI) === __JEDI. Actual: __FUNC()(__JEDI) ==='+__FUNC()(__JEDI));
    25 }
    26 //
    27 //////////////////////////////////////////////////////////////////////////////

mercurial