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