test262/test/language/expressions/template-literal/invalid-legacy-octal-escape...

27 lines
637 B
JavaScript

// Copyright (C) 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 16.1
description: Invalid octal escape sequence
info: |
TemplateCharacter ::
$ [lookahead ≠ {]
\ TemplateEscapeSequence
\ NotEscapeSequence
LineContinuation
LineTerminatorSequence
SourceCharacter but not one of ` or \ or $ or LineTerminator
TemplateEscapeSequence ::
CharacterEscapeSequence
0 [lookahead ∉ DecimalDigit]
HexEscapeSequence
UnicodeEscapeSequence
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
`\00`;