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

18 lines
520 B
JavaScript

// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-template-literal-lexical-components
description: >
Invalid octal escape sequence (regardless of the presence of Annex B)
info: |
A conforming implementation must not use the extended definition of
EscapeSequence described in B.1.2 when parsing a TemplateCharacter.
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
`\8`;