| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| FunctionDeclaration can be overrided by other FunctionDeclaration with |
| description: Duplicating function declaration |
| function __func(){return 1}; |
| var __store__func = __func; |
| function __func(){return 'A'}; |
| ////////////////////////////////////////////////////////////////////////////// |
| if (__store__func !== __func) { |
| $ERROR('#1: __store__func === __func. Actual: __store__func ==='+__store__func); |
| ////////////////////////////////////////////////////////////////////////////// |
| ////////////////////////////////////////////////////////////////////////////// |
| $ERROR('#2: __1 === __A. Actual: __1 ==='+__1); |
| ////////////////////////////////////////////////////////////////////////////// |