S11.13.2_A2.1_T1.3.js (640B)
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.3 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 = -1; 14 var z = (x %= 2); 15 if (z !== -1) { 16 throw new Test262Error('#1: var x = -1; var z = (x %= 2); z === -1. Actual: ' + (z)); 17 } 18 19 //CHECK#2 20 var x = -1; 21 var y = 2; 22 var z = (x %= y); 23 if (z !== -1) { 24 throw new Test262Error('#2: var x = -1; var y = 2; var z = (x %= y); z === -1. Actual: ' + (z)); 25 } 26 27 reportCompare(0, 0);