Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * FunctionDeclaration can be overrided by other FunctionDeclaration with the same Identifier
6 *
7 * @path ch13/13.0/S13_A6_T1.js
8 * @description Duplicating function declaration
9 */
11 function __func(){return 1};
13 var __store__func = __func;
15 var __1 = __func();
17 function __func(){return 'A'};
19 var __A = __func();
21 //////////////////////////////////////////////////////////////////////////////
22 //CHECK#1
23 if (__store__func !== __func) {
24 $ERROR('#1: __store__func === __func. Actual: __store__func ==='+__store__func);
25 }
26 //
27 //////////////////////////////////////////////////////////////////////////////
29 //////////////////////////////////////////////////////////////////////////////
30 //CHECK#2
31 if (__1 !== __A) {
32 $ERROR('#2: __1 === __A. Actual: __1 ==='+__1);
33 }
34 //
35 //////////////////////////////////////////////////////////////////////////////