Debian Codegraph @

js/src/tests/test262/language/expressions/object/method-definition/escaped-set-e.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2020 Rick Waldron. 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 `set` contextual keyword must not contain Unicode escape sequences.
9 info: |
10 Terminal symbols of the lexical, RegExp, and numeric string grammars 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 ---*/
21
22 $DONOTEVALUATE();
23
24 ({
25 s\u0065t m(v) {}
26 });