S11.8.6_A7_T1.js (726B)
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 "instanceof" returns true it means that 7 GetValue(RelationalExpression) is constructed with ShiftExpression 8 es5id: 11.8.6_A7_T1 9 description: Checking Object object 10 ---*/ 11 12 var __obj={}; 13 14 //CHECK#1 15 if (!(__obj instanceof Object)) { 16 throw new Test262Error('#1: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression'); 17 } 18 19 //CHECK#2 20 if (__obj.constructor !== Object) { 21 throw new Test262Error('#2: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression'); 22 } 23 24 reportCompare(0, 0);