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