Debian Codegraph @

js/src/tests/test262/language/literals/regexp/u-invalid-identity-escape.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-patterns
6 es6id: 21.2.1
7 description: Support for UnicodeIDContinue in IdentityEscape
8 info: |
9 IdentityEscape[U] ::
10 [+U] SyntaxCharacter
11 [+U] /
12 [~U] SourceCharacter but not UnicodeIDContinue
13
14 The `u` flag precludes the use of characters in UnicodeIDContinue
15 irrespective of the presence of Annex B extensions.
16 negative:
17 phase: parse
18 type: SyntaxError
19 ---*/
20
21 $DONOTEVALUATE();
22
23 /\M/u;