Debian Codegraph @

js/src/tests/test262/language/literals/regexp/S7.8.5_A2.3_T3.js

raw
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: sec-literals-regular-expression-literals
7 info: |
8 RegularExpressionChar ::
9 RegularExpressionBackslashSequence
10
11
12 RegularExpressionBackslashSequence ::
13 \ RegularExpressionNonTerminator
14
15 RegularExpressionNonTerminator ::
16 SourceCharacter but not LineTerminator
17
18 LineTerminator ::
19 <LF>
20 <CR>
21 <LS>
22 <PS>
23
24 description: >
25 A regular expression may not contain a <CR> as a SourceCharacter
26
27 negative:
28 phase: parse
29 type: SyntaxError
30 ---*/
31
32 $DONOTEVALUATE();
33
34 /a
35 /