Debian Codegraph @

js/src/tests/test262/language/literals/null/null-with-unicode.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2023 Veera Sivarajan. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-keywords-and-reserved-words
7 description: >
8 ReservedWord (null) cannot contain UnicodeEscapeSequence.
9 info: |
10 Note 1
11
12 Per 5.1.5, keywords in the grammar match literal sequences of specific SourceCharacter elements.
13 A code point in a keyword cannot be expressed by a \ UnicodeEscapeSequence.
14 negative:
15 phase: parse
16 type: SyntaxError
17 ---*/
18
19 $DONOTEVALUATE();
20
21 n\u{75}ll;