Debian Codegraph @

js/src/tests/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.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: prod-RegularExpressionNonTerminator
7 info: |
8 RegularExpressionBody ::
9 RegularExpressionFirstChar RegularExpressionChars
10
11 RegularExpressionChars ::
12 [empty]
13 RegularExpressionChars RegularExpressionChar
14
15 RegularExpressionFirstChar ::
16 RegularExpressionNonTerminator but not one of * or \ or / or [
17
18 RegularExpressionNonTerminator ::
19 SourceCharacter but not LineTerminator
20
21 description: >
22 A regular expression may not contain a <PS> as a SourceCharacter
23 negative:
24 phase: parse
25 type: SyntaxError
26 ---*/
27
28 $DONOTEVALUATE();
29
30 /a\\

/
31
32 /*
33 There is a <PS> between "a\\
" and "/"
34 */