Debian Codegraph @

js/src/tests/test262/language/expressions/template-literal/invalid-legacy-octal-escape-sequence-9.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-template-literal-lexical-components
6 description: >
7 Invalid octal escape sequence (regardless of the presence of Annex B)
8 info: |
9 TemplateCharacter ::
10 $ [lookahead ≠ {]
11 \ TemplateEscapeSequence
12 \ NotEscapeSequence
13 LineContinuation
14 LineTerminatorSequence
15 SourceCharacter but not one of ` or \ or $ or LineTerminator
16 TemplateEscapeSequence ::
17 CharacterEscapeSequence
18 0 [lookahead ∉ DecimalDigit]
19 HexEscapeSequence
20 UnicodeEscapeSequence
21 negative:
22 phase: parse
23 type: SyntaxError
24 ---*/
25
26 $DONOTEVALUATE();
27
28 `\9`;