S11.13.2_A2.1_T1.7.js (637B)
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: Operator uses GetValue 6 es5id: 11.13.2_A2.1_T1.7 7 description: > 8 Either Type is not Reference or GetBase is not null, check 9 opeartor is "x >>= y" 10 ---*/ 11 12 //CHECK#1 13 var x = 4; 14 var z = (x >>= 1); 15 if (z !== 2) { 16 throw new Test262Error('#1: var x = 4; var z = (x >>= 1); z === 2. Actual: ' + (z)); 17 } 18 19 //CHECK#2 20 var x = 4; 21 var y = 1; 22 var z = (x >>= y); 23 if (z !== 2) { 24 throw new Test262Error('#2: var x = 4; var y = 1; var z = (x >>= y); z === 2. Actual: ' + (z)); 25 } 26 27 reportCompare(0, 0);