Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/regexp/regexp-first-char-no-paragraph-separator.js

raw
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 esid: prod-RegularExpressionNonTerminator
6 info: |
7 RegularExpressionBody ::
8 RegularExpressionFirstChar RegularExpressionChars
9
10 RegularExpressionChars ::
11 [empty]
12 RegularExpressionChars RegularExpressionChar
13
14 RegularExpressionFirstChar ::
15 RegularExpressionNonTerminator but not one of * or \ or / or [
16
17 RegularExpressionNonTerminator ::
18 SourceCharacter but not LineTerminator
19
20 description: >
21 The first character of a regular expression may not be a <PS>
22 negative:
23 phase: parse
24 type: SyntaxError
25 ---*/
26
27 throw "Test262: This statement should not be evaluated.";
28
29 /
/
30
31 /*
32 There is a <PS> between the two / characters
33 */