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: * FunctionDeclaration can be overrided by other FunctionDeclaration with the same Identifier michael@0: * michael@0: * @path ch13/13.0/S13_A6_T1.js michael@0: * @description Duplicating function declaration michael@0: */ michael@0: michael@0: function __func(){return 1}; michael@0: michael@0: var __store__func = __func; michael@0: michael@0: var __1 = __func(); michael@0: michael@0: function __func(){return 'A'}; michael@0: michael@0: var __A = __func(); michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: if (__store__func !== __func) { michael@0: $ERROR('#1: __store__func === __func. Actual: __store__func ==='+__store__func); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#2 michael@0: if (__1 !== __A) { michael@0: $ERROR('#2: __1 === __A. Actual: __1 ==='+__1); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: