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