Debian Codegraph @

js/src/tests/test262/language/literals/regexp/S7.8.5_A1.2_T4.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 RegularExpressionLiteral::
9 / RegularExpressionBody / RegularExpressionFlags
10
11 RegularExpressionBody ::
12 RegularExpressionFirstChar RegularExpressionChars
13
14 RegularExpressionChars::
15 [empty]
16
17 MemberExpression . IdentifierName
18
19 description: A regular expression may not be empty.
20 negative:
21 phase: parse
22 type: SyntaxError
23 ---*/
24
25 $DONOTEVALUATE();
26
27 //
28 .source;