S7.9.2_A1_T5.js (515B)
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: Check examples for automatic semicolon insertion from the standard 6 es5id: 7.9.2_A1_T5 7 description: > 8 a=b \n ++c is a valid sentence in the ECMAScript grammar with 9 automatic semicolon insertion, but a!==b++c 10 ---*/ 11 12 //CHECK#1 13 var a=1,b=2,c=3; 14 a=b 15 ++c 16 17 if (a!==b) throw new Test262Error('#1: Automatic semicolon insertion not work with ++'); 18 19 reportCompare(0, 0);