S15.3.5.3_A1_T8.js (723B)
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 Assume F is a Function object. When the [[HasInstance]] method of F is 7 called with value V, the following steps are taken: i) If V is not an 8 object, return false 9 es5id: 15.3.5.3_A1_T8 10 description: V is undefined variable 11 ---*/ 12 13 var FACTORY; 14 FACTORY = Function("name","this.name=name;"); 15 16 //CHECK#1 17 if ((x instanceof FACTORY)!==false) { 18 throw new Test262Error('#1: Assume F is a Function object. When the [[HasInstance]] method of F is called with value V, the following steps are taken: i) If V is not an object, return false'); 19 } 20 21 var x; 22 23 reportCompare(0, 0);