comment-multi-cr.js (511B)
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: Multi line comment can contain CARRIAGE RETURN (U+000D) 6 esid: sec-line-terminators 7 es5id: 7.3_A5.2_T2 8 description: Insert real CARRIAGE RETURN into multi line comment 9 ---*/ 10 11 var x = 0; 12 /* 13 multilinecommentx = 1; 14 */ 15 if (x !== 0) { 16 throw new Test262Error('#1: var x = 0; /*\\rmulti\\rline\\rcomment\\rx = 1;\\r*/ x === 0. Actual: ' + (x)); 17 } 18 19 reportCompare(0, 0);