Debian Codegraph @

js/src/tests/test262/language/statements/for-await-of/escaped-of.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2017 André Bargull. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-grammar-notation
7 description: >
8 The `of` contextual keyword must not contain Unicode escape sequences.
9 info: |
10 Terminal symbols are shown
11 in fixed width font, both in the productions of the grammars and throughout this
12 specification whenever the text directly refers to such a terminal symbol. These
13 are to appear in a script exactly as written. All terminal symbol code points
14 specified in this way are to be understood as the appropriate Unicode code points
15 from the Basic Latin range, as opposed to any similar-looking code points from
16 other Unicode ranges.
17 negative:
18 phase: parse
19 type: SyntaxError
20 features: [async-iteration]
21 ---*/
22
23 $DONOTEVALUATE();
24
25 async function* f() {
26 for await (var x o\u0066 []) ;
27 }