Debian Codegraph @

js/src/tests/test262/language/statements/function/S13.2_A2_T1.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_T1
7 description: Nesting level is two
8 ---*/
9
10 var __JEDI="jedi";
11
12 function __FUNC(){
13 function __GUNC(){
14 return arguments[0];
15 };
16
17 return __GUNC;
18 };
19
20 //////////////////////////////////////////////////////////////////////////////
21 //CHECK#1
22 if (__FUNC()(__JEDI) !== __JEDI) {
23 throw new Test262Error('#1: __FUNC()(__JEDI) === __JEDI. Actual: __FUNC()(__JEDI) ==='+__FUNC()(__JEDI));
24 }
25 //
26 //////////////////////////////////////////////////////////////////////////////
27
28 reportCompare(0, 0);