| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Function declaration in function code - If the variable object |
| already has a property with the name of Function Identifier, replace its |
| value and attributes. Semantically, this step must follow the creation of |
| FormalParameterList properties |
| description: Checking existence of a function with passed parameter |
| if(!(f1().constructor.prototype === Function.prototype)){ |
| $ERROR('#1: f1() returns function'); |
| if(!(f2() === "function")){ |
| $ERROR('#2: f2() === "function"'); |
| if (!(f3() === "function")){ |
| $ERROR('#3: f3() === "function"'); |