legacy-octal-escape-sequence-strict-strict.js (769B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright (C) 2016 the V8 project authors. All rights reserved. 4 // This code is governed by the BSD license found in the LICENSE file. 5 /*--- 6 esid: sec-template-literal-lexical-components 7 description: LegacyOctalEscapeSequence is not available in template literals 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 flags: [onlyStrict] 22 negative: 23 phase: parse 24 type: SyntaxError 25 ---*/ 26 27 $DONOTEVALUATE(); 28 29 '\1';