regexp-source-char-no-line-separator.js (649B)
1 // |reftest| error:SyntaxError 2 // Copyright 2009 the Sputnik authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: prod-RegularExpressionBackslashSequence 7 info: | 8 RegularExpressionBackslashSequence :: 9 \ RegularExpressionNonTerminator 10 11 RegularExpressionNonTerminator :: 12 SourceCharacter but not LineTerminator 13 14 LineTerminator :: 15 <LF> 16 <CR> 17 <LS> 18 <PS> 19 20 description: > 21 A regular expression may not contain a <LS> as a SourceCharacter 22 negative: 23 phase: parse 24 type: SyntaxError 25 ---*/ 26 27 $DONOTEVALUATE(); 28 29 /a\\ / 30 31 /* 32 There is a <LS> between "a\\ " and "/" 33 */