mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
features: [numeric-separator-literal]
This commit is contained in:
parent
53c00784b6
commit
12797840ae
@ -68,6 +68,10 @@ string-trimming
|
||||
String.prototype.trimEnd
|
||||
String.prototype.trimStart
|
||||
|
||||
# Numeric Separator Literal
|
||||
# https://github.com/tc39/proposal-numeric-separator
|
||||
numeric-separator-literal
|
||||
|
||||
# Standard language features
|
||||
#
|
||||
# Language features that have been included in a published version of the
|
||||
|
@ -1,23 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0b StrBinaryDigits, 0B StrBinaryDigits
|
||||
info: |
|
||||
|
||||
StrBinaryIntegerLiteral :::
|
||||
0b StrBinaryDigits
|
||||
0B StrBinaryDigits
|
||||
|
||||
StrBinaryDigits :::
|
||||
BinaryDigit
|
||||
StrBinaryDigits BinaryDigit
|
||||
|
||||
BinaryDigit ::: one of
|
||||
0 1
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0b0_1"), 0b0);
|
||||
assert.sameValue(parseFloat("0B0_1"), 0B0);
|
@ -1,23 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0b StrBinaryDigits, 0B StrBinaryDigits
|
||||
info: |
|
||||
|
||||
StrBinaryIntegerLiteral :::
|
||||
0b StrBinaryDigits
|
||||
0B StrBinaryDigits
|
||||
|
||||
StrBinaryDigits :::
|
||||
BinaryDigit
|
||||
StrBinaryDigits BinaryDigit
|
||||
|
||||
BinaryDigit ::: one of
|
||||
0 1
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0b0_10"), 0b0);
|
||||
assert.sameValue(parseFloat("0B0_10"), 0B0);
|
@ -1,23 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0b StrBinaryDigits, 0B StrBinaryDigits
|
||||
info: |
|
||||
|
||||
StrBinaryIntegerLiteral :::
|
||||
0b StrBinaryDigits
|
||||
0B StrBinaryDigits
|
||||
|
||||
StrBinaryDigits :::
|
||||
BinaryDigit
|
||||
StrBinaryDigits BinaryDigit
|
||||
|
||||
BinaryDigit ::: one of
|
||||
0 1
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0b01_0"), 0b01);
|
||||
assert.sameValue(parseFloat("0B01_0"), 0B01);
|
@ -1,23 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0b StrBinaryDigits, 0B StrBinaryDigits
|
||||
info: |
|
||||
|
||||
StrBinaryIntegerLiteral :::
|
||||
0b StrBinaryDigits
|
||||
0B StrBinaryDigits
|
||||
|
||||
StrBinaryDigits :::
|
||||
BinaryDigit
|
||||
StrBinaryDigits BinaryDigit
|
||||
|
||||
BinaryDigit ::: one of
|
||||
0 1
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0b01_00"), 0b01);
|
||||
assert.sameValue(parseFloat("0B01_00"), 0B01);
|
@ -1,20 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0x StrHexDigits, 0X StrHexDigits
|
||||
info: |
|
||||
|
||||
StrHexLiteral :::
|
||||
0x StrHexDigits
|
||||
0X StrHexDigits
|
||||
|
||||
StrHexDigits :::
|
||||
HexDigit
|
||||
StrHexDigits HexDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0x0_1"), 0x0);
|
||||
assert.sameValue(parseFloat("0X0_1"), 0X0);
|
@ -1,20 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0x StrHexDigits, 0X StrHexDigits
|
||||
info: |
|
||||
|
||||
StrHexLiteral :::
|
||||
0x StrHexDigits
|
||||
0X StrHexDigits
|
||||
|
||||
StrHexDigits :::
|
||||
HexDigit
|
||||
StrHexDigits HexDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0x0_10"), 0x0);
|
||||
assert.sameValue(parseFloat("0X0_10"), 0X0);
|
@ -1,20 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0x StrHexDigits, 0X StrHexDigits
|
||||
info: |
|
||||
|
||||
StrHexLiteral :::
|
||||
0x StrHexDigits
|
||||
0X StrHexDigits
|
||||
|
||||
StrHexDigits :::
|
||||
HexDigit
|
||||
StrHexDigits HexDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0x01_0"), 0x01);
|
||||
assert.sameValue(parseFloat("0X01_0"), 0X01);
|
@ -1,20 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0x StrHexDigits, 0X StrHexDigits
|
||||
info: |
|
||||
|
||||
StrHexLiteral :::
|
||||
0x StrHexDigits
|
||||
0X StrHexDigits
|
||||
|
||||
StrHexDigits :::
|
||||
HexDigit
|
||||
StrHexDigits HexDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0x01_00"), 0x01);
|
||||
assert.sameValue(parseFloat("0X01_00"), 0X01);
|
@ -1,40 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0x StrHexDigits, 0X StrHexDigits
|
||||
info: |
|
||||
|
||||
StrHexLiteral :::
|
||||
0x StrHexDigits
|
||||
0X StrHexDigits
|
||||
|
||||
StrHexDigits :::
|
||||
HexDigit
|
||||
StrHexDigits HexDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0x0_0"), 0x0);
|
||||
assert.sameValue(parseFloat("0x1_1"), 0x1);
|
||||
assert.sameValue(parseFloat("0x2_2"), 0x2);
|
||||
assert.sameValue(parseFloat("0x3_3"), 0x3);
|
||||
assert.sameValue(parseFloat("0x4_4"), 0x4);
|
||||
assert.sameValue(parseFloat("0x5_5"), 0x5);
|
||||
assert.sameValue(parseFloat("0x6_6"), 0x6);
|
||||
assert.sameValue(parseFloat("0x7_7"), 0x7);
|
||||
assert.sameValue(parseFloat("0x8_8"), 0x8);
|
||||
assert.sameValue(parseFloat("0x9_9"), 0x9);
|
||||
assert.sameValue(parseFloat("0xa_a"), 0xa);
|
||||
assert.sameValue(parseFloat("0xb_b"), 0xb);
|
||||
assert.sameValue(parseFloat("0xc_c"), 0xc);
|
||||
assert.sameValue(parseFloat("0xd_d"), 0xd);
|
||||
assert.sameValue(parseFloat("0xe_e"), 0xe);
|
||||
assert.sameValue(parseFloat("0xf_f"), 0xf);
|
||||
assert.sameValue(parseFloat("0xA_A"), 0xA);
|
||||
assert.sameValue(parseFloat("0xB_B"), 0xB);
|
||||
assert.sameValue(parseFloat("0xC_C"), 0xC);
|
||||
assert.sameValue(parseFloat("0xD_D"), 0xD);
|
||||
assert.sameValue(parseFloat("0xE_E"), 0xE);
|
||||
assert.sameValue(parseFloat("0xF_F"), 0xF);
|
@ -6,7 +6,7 @@ esid: sec-tonumber-applied-to-the-string-type
|
||||
description: NonZeroDigit NumericLiteralSeparator DecimalDigit
|
||||
info: |
|
||||
|
||||
StrStrUnsignedDecimalLiteral :::
|
||||
StrUnsignedDecimalLiteral :::
|
||||
StrUnsignedDecimalLiteral
|
||||
|
||||
NonZeroDigit ::: one of
|
||||
|
@ -1,26 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0o StrOctalDigits, 0O StrOctalDigits
|
||||
info: |
|
||||
|
||||
StrOctalLiteral :::
|
||||
0o StrOctalDigits
|
||||
0O StrOctalDigits
|
||||
|
||||
StrOctalDigits :::
|
||||
OctalDigit
|
||||
StrOctalDigits OctalDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0o0_0"), 0o0);
|
||||
assert.sameValue(parseFloat("0o1_1"), 0o1);
|
||||
assert.sameValue(parseFloat("0o2_2"), 0o2);
|
||||
assert.sameValue(parseFloat("0o3_3"), 0o3);
|
||||
assert.sameValue(parseFloat("0o4_4"), 0o4);
|
||||
assert.sameValue(parseFloat("0o5_5"), 0o5);
|
||||
assert.sameValue(parseFloat("0o6_6"), 0o6);
|
||||
assert.sameValue(parseFloat("0o7_7"), 0o7);
|
@ -1,20 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0o StrOctalDigits, 0O StrOctalDigits
|
||||
info: |
|
||||
|
||||
StrOctalLiteral :::
|
||||
0o StrOctalDigits
|
||||
0O StrOctalDigits
|
||||
|
||||
StrOctalDigits :::
|
||||
OctalDigit
|
||||
StrOctalDigits OctalDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0o0_1"), 0o0);
|
||||
assert.sameValue(parseFloat("0O0_1"), 0O0);
|
@ -1,20 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0o StrOctalDigits, 0O StrOctalDigits
|
||||
info: |
|
||||
|
||||
StrOctalLiteral :::
|
||||
0o StrOctalDigits
|
||||
0O StrOctalDigits
|
||||
|
||||
StrOctalDigits :::
|
||||
OctalDigit
|
||||
StrOctalDigits OctalDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0o0_10"), 0o0);
|
||||
assert.sameValue(parseFloat("0O0_10"), 0O0);
|
@ -1,20 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0o StrOctalDigits, 0O StrOctalDigits
|
||||
info: |
|
||||
|
||||
StrOctalLiteral :::
|
||||
0o StrOctalDigits
|
||||
0O StrOctalDigits
|
||||
|
||||
StrOctalDigits :::
|
||||
OctalDigit
|
||||
StrOctalDigits OctalDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0o01_0"), 0o01);
|
||||
assert.sameValue(parseFloat("0O01_0"), 0O01);
|
@ -1,20 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: 0o StrOctalDigits, 0O StrOctalDigits
|
||||
info: |
|
||||
|
||||
StrOctalLiteral :::
|
||||
0o StrOctalDigits
|
||||
0O StrOctalDigits
|
||||
|
||||
StrOctalDigits :::
|
||||
OctalDigit
|
||||
StrOctalDigits OctalDigit
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("0o01_00"), 0o01);
|
||||
assert.sameValue(parseFloat("0O01_00"), 0O01);
|
@ -1,26 +0,0 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-tonumber-applied-to-the-string-type
|
||||
description: >
|
||||
StrUnsignedDecimalLiteral, + StrUnsignedDecimalLiteral, - StrUnsignedDecimalLiteral
|
||||
info: |
|
||||
|
||||
StrDecimalLiteral :::
|
||||
StrUnsignedDecimalLiteral
|
||||
+ StrUnsignedDecimalLiteral
|
||||
- StrUnsignedDecimalLiteral
|
||||
|
||||
---*/
|
||||
|
||||
assert.sameValue(parseFloat("-123456789_0"), -123456789);
|
||||
assert.sameValue(parseFloat("-123456789_1"), -123456789);
|
||||
assert.sameValue(parseFloat("-123456789_2"), -123456789);
|
||||
assert.sameValue(parseFloat("-123456789_3"), -123456789);
|
||||
assert.sameValue(parseFloat("-123456789_4"), -123456789);
|
||||
assert.sameValue(parseFloat("-123456789_5"), -123456789);
|
||||
assert.sameValue(parseFloat("-123456789_6"), -123456789);
|
||||
assert.sameValue(parseFloat("-123456789_7"), -123456789);
|
||||
assert.sameValue(parseFloat("-123456789_8"), -123456789);
|
||||
assert.sameValue(parseFloat("-123456789_9"), -123456789);
|
@ -25,6 +25,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
BinaryDigit :: one of
|
||||
0 1
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0b0_1, 0b01);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
BinaryDigit :: one of
|
||||
0 1
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0b0_10, 0b010);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
BinaryDigit :: one of
|
||||
0 1
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0b01_0, 0b010);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
BinaryDigit :: one of
|
||||
0 1
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0b01_00, 0b0100);
|
||||
|
@ -25,6 +25,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -25,6 +25,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
- DecimalDigits
|
||||
...
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(1.0e-1_0, 1.0e-10);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
- DecimalDigits
|
||||
...
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(1.0e-10_0, 1.0e-100);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
+ DecimalDigits
|
||||
...
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(1.0e+1_0, 1.0e+10);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
+ DecimalDigits
|
||||
...
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(1.0e+10_0, 1.0e+100);
|
||||
|
@ -20,6 +20,7 @@ info: |
|
||||
DecimalDigit :: one of
|
||||
0 1 2 3 4 5 6 7 8 9
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(1_0, 10);
|
||||
|
@ -17,6 +17,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -19,6 +19,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -20,6 +20,7 @@ info: |
|
||||
ExponentIndicator :: one of
|
||||
e E
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(10.00_01e2, 10.0001e2);
|
||||
|
@ -12,6 +12,7 @@ info: |
|
||||
...
|
||||
DecimalDigits NumericLiteralSeparator DecimalDigit
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(123456789_0, 1234567890);
|
||||
|
@ -17,6 +17,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -20,6 +20,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -19,6 +19,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -22,6 +22,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -20,6 +20,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -20,6 +20,7 @@ info: |
|
||||
ExponentIndicator :: one of
|
||||
e E
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(.0_1e2, .01e2);
|
||||
|
@ -20,6 +20,7 @@ info: |
|
||||
ExponentIndicator :: one of
|
||||
e E
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(.1_01e2, .101e2);
|
||||
|
@ -20,6 +20,7 @@ info: |
|
||||
ExponentIndicator :: one of
|
||||
e E
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(.10_1e2, .101e2);
|
||||
|
@ -20,6 +20,7 @@ info: |
|
||||
ExponentIndicator :: one of
|
||||
e E
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(.00_01e2, .0001e2);
|
||||
|
@ -21,6 +21,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -22,6 +22,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -20,6 +20,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -25,6 +25,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
HexDigit::one of
|
||||
0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0x0_1, 0x01);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
HexDigit::one of
|
||||
0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0x0_10, 0x010);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
HexDigit::one of
|
||||
0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0x01_0, 0x010);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
HexDigit::one of
|
||||
0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0x01_00, 0x0100);
|
||||
|
@ -25,6 +25,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -25,6 +25,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
HexDigit::one of
|
||||
0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0x0_0, 0x00);
|
||||
|
@ -22,6 +22,7 @@ info: |
|
||||
DecimalDigit :: one of
|
||||
0 1 2 3 4 5 6 7 8 9
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(1_0, 10);
|
||||
|
@ -20,6 +20,7 @@ info: |
|
||||
DecimalDigits DecimalDigit
|
||||
...
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(1_1, 11);
|
||||
|
@ -20,6 +20,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -18,6 +18,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -20,6 +20,7 @@ info: |
|
||||
DecimalDigits DecimalDigit
|
||||
...
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(1_0123456789, 10123456789);
|
||||
|
@ -25,6 +25,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -25,6 +25,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -25,6 +25,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
OctalDigit :: one of
|
||||
0 1 2 3 4 5 6 7
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0o0_0, 0o00);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
OctalDigit :: one of
|
||||
0 1 2 3 4 5 6 7
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0o0_1, 0o01);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
OctalDigit :: one of
|
||||
0 1 2 3 4 5 6 7
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0o0_10, 0o010);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
OctalDigit :: one of
|
||||
0 1 2 3 4 5 6 7
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0o01_0, 0o010);
|
||||
|
@ -21,6 +21,7 @@ info: |
|
||||
OctalDigit :: one of
|
||||
0 1 2 3 4 5 6 7
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0o01_00, 0o0100);
|
||||
|
@ -12,6 +12,7 @@ info: |
|
||||
...
|
||||
- DecimalDigits
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(-123456789_0, -1234567890);
|
||||
|
@ -13,6 +13,7 @@ info: |
|
||||
+ DecimalDigits
|
||||
...
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
assert.sameValue(+123456789_0, 1234567890);
|
||||
|
@ -17,6 +17,8 @@ info: |
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
||||
features: [numeric-separator-literal]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
Loading…
x
Reference in New Issue
Block a user