-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move some AnnexB tests per proposed spec change
Additionally, update test metadata and introduce two new tests to complete coverage. Reference: "Normative: Make B.1.{1,2} normative" tc39/ecma262#1867
- Loading branch information
1 parent
5e0fc43
commit d454b83
Showing
24 changed files
with
172 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../literals/numeric/legacy-octal-integer.js → .../literals/numeric/legacy-octal-integer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rals/numeric/non-octal-decimal-integer.js → ...rals/numeric/non-octal-decimal-integer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
test/language/literals/string/legacy-non-octal-escape-sequence-8-non-strict.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (C) 2021 the V8 project authors. 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 available in non-strict code - 8 | ||
info: | | ||
EscapeSequence :: | ||
CharacterEscapeSequence | ||
LegacyOctalEscapeSequence | ||
NonOctalDecimalEscapeSequence | ||
HexEscapeSequence | ||
UnicodeEscapeSequence | ||
NonOctalDecimalEscapeSequence :: one of | ||
8 9 | ||
flags: [noStrict] | ||
---*/ | ||
|
||
assert.sameValue('\8', '8'); |
2 changes: 1 addition & 1 deletion
2
test/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
test/language/literals/string/legacy-non-octal-escape-sequence-9-non-strict.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (C) 2021 the V8 project authors. 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 available in non-strict code - 9 | ||
info: | | ||
EscapeSequence :: | ||
CharacterEscapeSequence | ||
LegacyOctalEscapeSequence | ||
NonOctalDecimalEscapeSequence | ||
HexEscapeSequence | ||
UnicodeEscapeSequence | ||
NonOctalDecimalEscapeSequence :: one of | ||
8 9 | ||
flags: [noStrict] | ||
---*/ | ||
|
||
assert.sameValue('\9', '9'); |
2 changes: 1 addition & 1 deletion
2
test/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 14 additions & 25 deletions
39
test/language/literals/string/legacy-non-octal-escape-sequence-strict.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.