Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
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 * "var" does not override function declaration
6 *
7 * @path ch13/13.0/S13_A19_T1.js
8 * @description Creating a function and a variable with identical Identifiers in global scope
9 */
11 // since "var" does not override function declaration __decl is set to function
12 //////////////////////////////////////////////////////////////////////////////
13 //CHECK#1
14 if (typeof __decl !== "function") {
15 $ERROR('#1: typeof __decl === "function". Actual: typeof __decl ==='+typeof __decl);
16 }
17 //
18 //////////////////////////////////////////////////////////////////////////////
20 var __decl = 1;
22 //since statement was evaluted __decl turns to 1 from function
23 //////////////////////////////////////////////////////////////////////////////
24 //CHECK#2
25 if (__decl !== 1) {
26 $ERROR('#2: __decl === 1. Actual: __decl ==='+__decl);
27 }
28 //
29 //////////////////////////////////////////////////////////////////////////////
31 function __decl(){return 1;}