blob: 9a5908a8968e2129885c5101d81742b3948b2359 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// |reftest| error:SyntaxError
'use strict';
// 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-literals-string-literals
description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8
info: |
EscapeSequence ::
CharacterEscapeSequence
LegacyOctalEscapeSequence
NonOctalDecimalEscapeSequence
HexEscapeSequence
UnicodeEscapeSequence
NonOctalDecimalEscapeSequence :: one of
8 9
## 12.8.4.1 Static Semantics: Early Errors
EscapeSequence :: NonOctalDecimalEscapeSequence
- It is a Syntax Error if the source code matching this production is strict
mode code.
flags: [onlyStrict]
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
'\8';
|