2016-05-06 17:19:09 +02:00
|
|
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
esid: sec-additional-syntax-string-literals
|
2018-01-10 23:29:48 +01:00
|
|
|
es6id: B.1.2
|
2016-05-06 17:19:09 +02:00
|
|
|
description: >
|
|
|
|
LegacyOctalEscapeSequence is not enabled in strict mode code (regardless of
|
|
|
|
the presence of Annex B)
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2016-05-06 17:19:09 +02:00
|
|
|
EscapeSequence ::
|
|
|
|
CharacterEscapeSequence
|
|
|
|
LegacyOctalEscapeSequence
|
|
|
|
HexEscapeSequence
|
|
|
|
UnicodeEscapeSequence
|
|
|
|
|
|
|
|
LegacyOctalEscapeSequence ::
|
|
|
|
OctalDigit [lookahead ∉ OctalDigit]
|
|
|
|
ZeroToThree OctalDigit [lookahead ∉ OctalDigit]
|
|
|
|
FourToSeven OctalDigit
|
|
|
|
ZeroToThree OctalDigit OctalDigit
|
|
|
|
|
|
|
|
ZeroToThree :: one of
|
|
|
|
0 1 2 3
|
|
|
|
|
|
|
|
FourToSeven :: one of
|
|
|
|
4 5 6 7
|
|
|
|
|
|
|
|
This definition of EscapeSequence is not used in strict mode or when
|
|
|
|
parsing TemplateCharacter.
|
|
|
|
flags: [onlyStrict]
|
2016-01-31 00:57:28 +01:00
|
|
|
negative:
|
2017-12-03 06:06:42 +01:00
|
|
|
phase: parse
|
2016-01-31 00:57:28 +01:00
|
|
|
type: SyntaxError
|
2016-05-06 17:19:09 +02:00
|
|
|
---*/
|
|
|
|
|
2018-09-27 01:18:22 +02:00
|
|
|
failIfCodeGetsEvaluated();
|
2017-04-29 22:31:08 +02:00
|
|
|
|
2016-05-06 17:19:09 +02:00
|
|
|
'\1';
|