michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Nested function are admitted michael@0: * michael@0: * @path ch13/13.2/S13.2_A2_T2.js michael@0: * @description Nesting level is three michael@0: */ michael@0: michael@0: var __ROBOT="C3PO"; michael@0: michael@0: function __FUNC(){ michael@0: function __GUNC(){ michael@0: return arguments[0]; michael@0: }; michael@0: function __HUNC(){ michael@0: return __GUNC; michael@0: }; michael@0: return __HUNC; michael@0: }; michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: if (__FUNC()()(__ROBOT) !== __ROBOT) { michael@0: $ERROR('#1: __FUNC()()(__ROBOT) === __ROBOT. Actual: __FUNC()()(__ROBOT) ==='+__FUNC()()(__ROBOT)); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: