S15.3.2_A1.js (641B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: | 6 When Function is called as part of a new expression, it is a constructor: 7 it initialises the newly created object 8 es5id: 15.3.2_A1 9 description: > 10 Checking the constuctor of the object that is created as a new 11 Function 12 ---*/ 13 14 var f = new Function; 15 16 assert.sameValue(f.constructor, Function, 'The value of f.constructor is expected to equal the value of Function'); 17 assert.notSameValue(f, undefined, 'The value of f is expected to not equal ``undefined``'); 18 19 reportCompare(0, 0);