Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Update Test262 to Feb 9 version
https://bugs.webkit.org/show_bug.cgi?id=182468 Reviewed by Saam Barati. Canonical link: https://commits.webkit.org/198442@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
ec8a671
commit 871be91
Showing
173 changed files
with
4,024 additions
and
379 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
29 changes: 29 additions & 0 deletions
29
JSTests/test262/test/built-ins/Number/string-numeric-separator-literal-bil-bd-nsl-bd.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,29 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
`0b` | `0B` BinaryDigit NumericLiteralSeparator BinaryDigit | ||
NumericLiteralSeparator :: | ||
_ | ||
BinaryIntegerLiteral :: | ||
0b BinaryDigits | ||
0B BinaryDigits | ||
BinaryDigits :: | ||
BinaryDigit | ||
BinaryDigits BinaryDigit | ||
BinaryDigits NumericLiteralSeparator BinaryDigit | ||
BinaryDigit :: one of | ||
0 1 | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("0b0_1"), NaN, "0b0_1"); | ||
assert.sameValue(Number("0B0_1"), NaN, "0B0_1"); |
29 changes: 29 additions & 0 deletions
29
JSTests/test262/test/built-ins/Number/string-numeric-separator-literal-bil-bd-nsl-bds.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,29 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
`0b` | `0B` BinaryDigit NumericLiteralSeparator BinaryDigit | ||
NumericLiteralSeparator :: | ||
_ | ||
BinaryIntegerLiteral :: | ||
0b BinaryDigits | ||
0B BinaryDigits | ||
BinaryDigits :: | ||
BinaryDigit | ||
BinaryDigits BinaryDigit | ||
BinaryDigits NumericLiteralSeparator BinaryDigit | ||
BinaryDigit :: one of | ||
0 1 | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("0b0_10"), NaN, "0b0_10"); | ||
assert.sameValue(Number("0B0_10"), NaN, "0B0_10"); |
29 changes: 29 additions & 0 deletions
29
JSTests/test262/test/built-ins/Number/string-numeric-separator-literal-bil-bds-nsl-bd.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,29 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
`0b` | `0B` BinaryDigits NumericLiteralSeparator BinaryDigit | ||
NumericLiteralSeparator :: | ||
_ | ||
BinaryIntegerLiteral :: | ||
0b BinaryDigits | ||
0B BinaryDigits | ||
BinaryDigits :: | ||
BinaryDigit | ||
BinaryDigits BinaryDigit | ||
BinaryDigits NumericLiteralSeparator BinaryDigit | ||
BinaryDigit :: one of | ||
0 1 | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("0b01_0"), NaN, "0b01_0"); | ||
assert.sameValue(Number("0B01_0"), NaN, "0B01_0"); |
29 changes: 29 additions & 0 deletions
29
JSTests/test262/test/built-ins/Number/string-numeric-separator-literal-bil-bds-nsl-bds.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,29 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
`0b` | `0B` BinaryDigits NumericLiteralSeparator BinaryDigit | ||
NumericLiteralSeparator :: | ||
_ | ||
BinaryIntegerLiteral :: | ||
0b BinaryDigits | ||
0B BinaryDigits | ||
BinaryDigits :: | ||
BinaryDigit | ||
BinaryDigits BinaryDigit | ||
BinaryDigits NumericLiteralSeparator BinaryDigit | ||
BinaryDigit :: one of | ||
0 1 | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("0b01_00"), NaN, "0b01_00"); | ||
assert.sameValue(Number("0B01_00"), NaN, "0B01_00"); |
28 changes: 28 additions & 0 deletions
28
...st/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-minus-dd-nsl-dd.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,28 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
DecimalDigits `.` DecimalDigits ExponentPart_opt `-` DecimalDigits | ||
NumericLiteralSeparator :: | ||
_ | ||
DecimalLiteral :: | ||
DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt | ||
DecimalDigits :: | ||
... | ||
DecimalDigits NumericLiteralSeparator DecimalDigit | ||
SignedInteger :: | ||
... | ||
- DecimalDigits | ||
... | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("1.0e-1_0"), NaN, "1.0e-1_0"); |
28 changes: 28 additions & 0 deletions
28
...t/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-minus-dds-nsl-dd.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,28 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
DecimalDigits `.` DecimalDigits ExponentPart_opt `-` DecimalDigits | ||
NumericLiteralSeparator :: | ||
_ | ||
DecimalLiteral :: | ||
DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt | ||
DecimalDigits :: | ||
... | ||
DecimalDigits NumericLiteralSeparator DecimalDigit | ||
SignedInteger :: | ||
... | ||
- DecimalDigits | ||
... | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("1.0e-10_0"), NaN, "1.0e-10_0"); |
28 changes: 28 additions & 0 deletions
28
...est/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dd-nsl-dd.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,28 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
DecimalDigits `.` DecimalDigits ExponentPart_opt `+` DecimalDigits | ||
NumericLiteralSeparator :: | ||
_ | ||
DecimalLiteral :: | ||
DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt | ||
DecimalDigits :: | ||
... | ||
DecimalDigits NumericLiteralSeparator DecimalDigit | ||
SignedInteger :: | ||
... | ||
+ DecimalDigits | ||
... | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("1.0e+1_0"), NaN, "1.0e+1_0"); |
29 changes: 29 additions & 0 deletions
29
...st/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.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,29 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
DecimalDigits `.` DecimalDigits ExponentPart_opt `+` DecimalDigits | ||
NumericLiteralSeparator :: | ||
_ | ||
DecimalLiteral :: | ||
DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt | ||
DecimalDigits :: | ||
... | ||
DecimalDigits NumericLiteralSeparator DecimalDigit | ||
SignedInteger :: | ||
... | ||
+ DecimalDigits | ||
... | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("1.0e+10_0"), NaN, "1.0e+10_0"); | ||
|
37 changes: 37 additions & 0 deletions
37
JSTests/test262/test/built-ins/Number/string-numeric-separator-literal-dd-nsl-dd-one-of.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,37 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
NonZeroDigit NumericLiteralSeparator DecimalDigits | ||
NumericLiteralSeparator :: | ||
_ | ||
DecimalIntegerLiteral :: | ||
... | ||
NonZeroDigit NumericLiteralSeparator_opt DecimalDigits | ||
DecimalDigits :: | ||
DecimalDigit | ||
... | ||
DecimalDigit :: one of | ||
0 1 2 3 4 5 6 7 8 9 | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("1_0"), NaN, "1_0"); | ||
assert.sameValue(Number("1_1"), NaN, "1_1"); | ||
assert.sameValue(Number("1_2"), NaN, "1_2"); | ||
assert.sameValue(Number("1_3"), NaN, "1_3"); | ||
assert.sameValue(Number("1_4"), NaN, "1_4"); | ||
assert.sameValue(Number("1_5"), NaN, "1_5"); | ||
assert.sameValue(Number("1_6"), NaN, "1_6"); | ||
assert.sameValue(Number("1_7"), NaN, "1_7"); | ||
assert.sameValue(Number("1_8"), NaN, "1_8"); | ||
assert.sameValue(Number("1_9"), NaN, "1_9"); |
27 changes: 27 additions & 0 deletions
27
...test262/test/built-ins/Number/string-numeric-separator-literal-dds-dot-dd-nsl-dd-ep-dd.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,27 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
DecimalDigits `.` DecimalDigits NumericLiteralSeparator DecimalDigits | ||
ExponentPart SignedInteger | ||
NumericLiteralSeparator :: | ||
_ | ||
DecimalLiteral :: | ||
. DecimalDigits ExponentPart_opt | ||
DecimalDigits :: | ||
... | ||
DecimalDigits NumericLiteralSeparator DecimalDigit | ||
ExponentIndicator :: one of | ||
e E | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("10.00_01e2"), NaN, "10.00_01e2"); |
27 changes: 27 additions & 0 deletions
27
JSTests/test262/test/built-ins/Number/string-numeric-separator-literal-dds-nsl-dd.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,27 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: DecimalDigits NumericLiteralSeparator DecimalDigit | ||
info: | ||
NumericLiteralSeparator :: | ||
_ | ||
DecimalDigits :: | ||
... | ||
DecimalDigits NumericLiteralSeparator DecimalDigit | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number("123456789_0"), NaN, "123456789_0"); | ||
assert.sameValue(Number("123456789_1"), NaN, "123456789_1"); | ||
assert.sameValue(Number("123456789_2"), NaN, "123456789_2"); | ||
assert.sameValue(Number("123456789_3"), NaN, "123456789_3"); | ||
assert.sameValue(Number("123456789_4"), NaN, "123456789_4"); | ||
assert.sameValue(Number("123456789_5"), NaN, "123456789_5"); | ||
assert.sameValue(Number("123456789_6"), NaN, "123456789_6"); | ||
assert.sameValue(Number("123456789_7"), NaN, "123456789_7"); | ||
assert.sameValue(Number("123456789_8"), NaN, "123456789_8"); | ||
assert.sameValue(Number("123456789_9"), NaN, "123456789_9"); |
27 changes: 27 additions & 0 deletions
27
JSTests/test262/test/built-ins/Number/string-numeric-separator-literal-dot-dd-nsl-dd-ep.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,27 @@ | ||
// Copyright (C) 2017 the V8 project authors. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: prod-NumericLiteralSeparator | ||
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations | ||
info: | | ||
`.` DecimalDigit NumericLiteralSeparator DecimalDigit ExponentPart | ||
NumericLiteralSeparator :: | ||
_ | ||
DecimalLiteral :: | ||
. DecimalDigits ExponentPart_opt | ||
DecimalDigits :: | ||
DecimalDigit | ||
... | ||
DecimalDigits NumericLiteralSeparator DecimalDigit | ||
ExponentIndicator :: one of | ||
e E | ||
features: [numeric-separator-literal] | ||
---*/ | ||
|
||
assert.sameValue(Number(".0_1e2"), NaN, ".0_1e2"); |
Oops, something went wrong.