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: * If there is already a property of the variable object with the michael@0: * name of a declared variable, the value of the property and its attributes michael@0: * are not changed michael@0: * michael@0: * @path ch10/10.2/10.2.1/S10.2.1_A5.2_T1.js michael@0: * @description Checking existence of the variable object property with formal parameter michael@0: */ michael@0: michael@0: //CHECK#1 michael@0: function f1(x){ michael@0: var x; michael@0: michael@0: return typeof x; michael@0: } michael@0: michael@0: if(!(f1(1) === "number")){ michael@0: $PRINT('#1: f1(1) === "number"'); michael@0: } michael@0: michael@0: //CHECK#2 michael@0: function f2(x){ michael@0: var x; michael@0: michael@0: return x; michael@0: } michael@0: michael@0: if(!(f2(1) === 1)){ michael@0: $PRINT('#1: f2(1) === 1'); michael@0: } michael@0: