Debian Codegraph @

js/src/tests/test262/language/statements/function/S13.2_A2_T2.js

raw
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 info: Nested function are admitted
6 es5id: 13.2_A2_T2
7 description: Nesting level is three
8 ---*/
9
10 var __ROBOT="C3PO";
11
12 function __FUNC(){
13 function __GUNC(){
14 return arguments[0];
15 };
16 function __HUNC(){
17 return __GUNC;
18 };
19 return __HUNC;
20 };
21
22 //////////////////////////////////////////////////////////////////////////////
23 //CHECK#1
24 if (__FUNC()()(__ROBOT) !== __ROBOT) {
25 throw new Test262Error('#1: __FUNC()()(__ROBOT) === __ROBOT. Actual: __FUNC()()(__ROBOT) ==='+__FUNC()()(__ROBOT));
26 }
27 //
28 //////////////////////////////////////////////////////////////////////////////
29
30 reportCompare(0, 0);