Skip to content

Commit

Permalink
[JSC] Update Test262 to Feb 9 version
Browse files Browse the repository at this point in the history
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
Constellation committed Feb 9, 2018
1 parent ec8a671 commit 871be91
Show file tree
Hide file tree
Showing 173 changed files with 4,024 additions and 379 deletions.
7 changes: 7 additions & 0 deletions JSTests/ChangeLog
@@ -1,3 +1,10 @@
2018-02-08 Yusuke Suzuki <utatane.tea@gmail.com>

[JSC] Update Test262 to Feb 9 version
https://bugs.webkit.org/show_bug.cgi?id=182468

Reviewed by Saam Barati.

2018-02-08 Yusuke Suzuki <utatane.tea@gmail.com>

Unreviewed, fix invalid line terminator in old test262 file part 2
Expand Down
688 changes: 556 additions & 132 deletions JSTests/test262.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions JSTests/test262/test/built-ins/Number/S8.12.8_A4.js
Expand Up @@ -13,13 +13,13 @@ description: >

try
{
var __obj = {valueOf:function(){return new Object;},toString: function() {return new Object();}}
var __obj = {valueOf:function(){return new Object;},toString: function() {return new Object();}}
Number(__obj);
$ERROR('#1.1: var __obj = {valueOf:function(){return new Object;},toNumber: function() {return new Object();}}; Number(__obj) throw TypeError. Actual: ' + (Number(__obj)));
}
catch(e)
{
if ((e instanceof TypeError) !== true) {
$ERROR('#1.2: var __obj = {valueOf:function(){return new Object;},toNumber: function() {return new Object();}}; Number(__obj) throw TypeError. Actual: ' + (e));
}
}
}
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");

@@ -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");
@@ -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");
@@ -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");
@@ -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");

0 comments on commit 871be91

Please sign in to comment.