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

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:bf131eba0b44
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /**
5 * Nested function are admitted
6 *
7 * @path ch13/13.2/S13.2_A2_T2.js
8 * @description Nesting level is three
9 */
10
11 var __ROBOT="C3PO";
12
13 function __FUNC(){
14 function __GUNC(){
15 return arguments[0];
16 };
17 function __HUNC(){
18 return __GUNC;
19 };
20 return __HUNC;
21 };
22
23 //////////////////////////////////////////////////////////////////////////////
24 //CHECK#1
25 if (__FUNC()()(__ROBOT) !== __ROBOT) {
26 $ERROR('#1: __FUNC()()(__ROBOT) === __ROBOT. Actual: __FUNC()()(__ROBOT) ==='+__FUNC()()(__ROBOT));
27 }
28 //
29 //////////////////////////////////////////////////////////////////////////////
30

mercurial