| // 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 declared variable |
| assert.sameValue(f1().constructor.prototype, Function.prototype); |
| assert.sameValue(f2(), "function"); |