| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: FunctionExpression must be localed in a reacheable fragment of the program |
| description: Declaring a function within an "if" Expression |
| ////////////////////////////////////////////////////////////////////////////// |
| if ( __func !== undefined) { |
| $ERROR('#1: __func === undefined. Actual: __func ==='+ __func ); |
| ////////////////////////////////////////////////////////////////////////////// |
| var __func = function(){return HERE;}; |
| var __func = function (){return THERE;}; |
| ////////////////////////////////////////////////////////////////////////////// |
| $ERROR('#2: __func() === HERE. Actual: __func() ==='+ __func() ); |
| ////////////////////////////////////////////////////////////////////////////// |