15.7.3-1.js |
---
es5id: 15.7.3-1
description: Number constructor - [[Prototype]] is the Function prototype object
--- |
378 |
15.7.3-2.js |
---
es5id: 15.7.3-2
description: >
Number constructor - [[Prototype]] is the Function prototype
object (using getPrototypeOf)
--- |
387 |
15.7.4-1.js |
---
es5id: 15.7.4-1
description: "Number prototype object: its [[Class]] must be 'Number'"
--- |
408 |
bigint-conversion.js |
---
description: BigInt to Number conversion
esid: pending
features: [BigInt, exponentiation]
--- |
937 |
browser.js |
|
0 |
EPSILON.js |
---
esid: sec-number.epsilon
description: >
"EPSILON" property of Number
info: |
20.1.2.1 Number.EPSILON
The value of Number.EPSILON is the difference between 1 and the smallest value
greater than 1 that is representable as a Number value, which is approximately
2.2204460492503130808472633361816 x 10-16.
This property has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: false }.
includes: [propertyHelper.js]
--- |
885 |
is-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
The Number constructor implements [[Construct]]
info: |
IsConstructor ( argument )
The abstract operation IsConstructor takes argument argument (an ECMAScript language value).
It determines if argument is a function object with a [[Construct]] internal method.
It performs the following steps when called:
If Type(argument) is not Object, return false.
If argument has a [[Construct]] internal method, return true.
Return false.
includes: [isConstructor.js]
features: [Reflect.construct]
--- |
838 |
isFinite |
|
|
isInteger |
|
|
isNaN |
|
|
isSafeInteger |
|
|
MAX_SAFE_INTEGER.js |
---
description: Property descriptor for `Number.MAX_SAFE_INTEGER`
esid: sec-number.max_safe_integer
info: |
The value of Number.MAX_SAFE_INTEGER is 9007199254740991
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: false }.
includes: [propertyHelper.js]
--- |
903 |
MAX_VALUE |
|
|
MIN_SAFE_INTEGER.js |
---
description: Property descriptor for `Number.MIN_SAFE_INTEGER`
esid: sec-number.min_safe_integer
info: |
The value of Number.MIN_SAFE_INTEGER is −9007199254740991
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: false }.
includes: [propertyHelper.js]
--- |
907 |
MIN_VALUE |
|
|
NaN.js |
---
esid: sec-number.nan
description: >
"NaN" property descriptor and value of Number
info: |
20.1.2.10 Number.NaN
The value of Number.NaN is NaN.
This property has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: false }.
includes: [propertyHelper.js]
--- |
609 |
NEGATIVE_INFINITY |
|
|
parseFloat |
|
|
parseFloat.js |
---
esid: sec-number.parsefloat
description: >
"parseFloat" property descriptor and value of Number
info: |
Number.parseFloat
The value of the Number.parseFloat data property is the same built-in function
object that is the value of the parseFloat property of the global object
defined in 18.2.4.
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js]
--- |
927 |
parseInt |
|
|
parseInt.js |
---
esid: sec-number.parseint
description: >
"parseInt" property descriptor and value of Number
info: |
Number.parseInt
The value of the Number.parseInt data property is the same built-in function
object that is the value of the parseInt property of the global object
defined in 18.2.4.
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js]
--- |
907 |
POSITIVE_INFINITY |
|
|
prop-desc.js |
---
esid: sec-number-constructor-number-value
description: >
Property descriptor of Number
info: |
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js]
--- |
651 |
proto-from-ctor-realm.js |
---
esid: sec-number-constructor-number-value
description: Default [[Prototype]] value derived from realm of the newTarget
info: |
[...]
4. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%NumberPrototype%",
« [[NumberData]] »).
[...]
9.1.14 GetPrototypeFromConstructor
[...]
3. Let proto be ? Get(constructor, "prototype").
4. If Type(proto) is not Object, then
a. Let realm be ? GetFunctionRealm(constructor).
b. Let proto be realm's intrinsic object named intrinsicDefaultProto.
[...]
features: [cross-realm, Reflect]
--- |
953 |
prototype |
|
|
return-abrupt-tonumber-value-symbol.js |
---
esid: sec-number-constructor-number-value
description: >
Return abrupt from ToNumber(value)
info: |
Number ( value )
1. If no arguments were passed to this function invocation, let n be +0.
2. Else, let n be ? ToNumber(value).
[...]
features: [Symbol]
--- |
625 |
return-abrupt-tonumber-value.js |
---
esid: sec-number-constructor-number-value
description: >
Return abrupt from ToNumber(value)
info: |
Number ( value )
1. If no arguments were passed to this function invocation, let n be +0.
2. Else, let n be ? ToNumber(value).
[...]
--- |
974 |
S8.12.8_A3.js |
---
info: |
We overload valueOf method so it return non Primitive value
Thus [[DefaultValue]] must return Object.toString() value
es5id: 8.12.8_A3
description: >
Try to overload toString method, that returned Primitive, and
valueOf method, that returned new Object
--- |
922 |
S8.12.8_A4.js |
---
info: |
We overload valueOf method so it return non Primitive value and toString method so it return non Primitive value too
Thus [[DefaultValue]] must generate TypeError error
es5id: 8.12.8_A4
description: >
Try to overload toString and valueOf methods, they returned new
Objects
--- |
975 |
S9.1_A1_T1.js |
---
info: |
Result of primitive conversion from object is a default value for the
Object
es5id: 9.1_A1_T1
description: >
Using operator Number. The operator calls ToPrimitive with hint
Number
--- |
883 |
S9.3.1_A1.js |
---
info: "The MV of StringNumericLiteral ::: [empty] is 0"
es5id: 9.3.1_A1
description: Number('') convert to Number by explicit transformation
--- |
369 |
S9.3.1_A2.js |
---
info: "The MV of StringNumericLiteral ::: StrWhiteSpace is 0"
es5id: 9.3.1_A2
description: >
Strings with various WhiteSpaces convert to Number by explicit
transformation
--- |
2727 |
S9.3.1_A2_U180E.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
Ensure U+180E is not recognized as whitespace, convert to Number by explicit transformation
info: |
7.1.3.1 ToNumber Applied to the String Type
If the grammar cannot interpret the String as an expansion of
StringNumericLiteral, then the result of ToNumber is NaN.
StringNumericLiteral :::
StrWhiteSpace_opt StrNumericLiteral StrWhiteSpace_opt
StrWhiteSpace :::
StrWhiteSpaceChar StrWhiteSpace_opt
StrWhiteSpaceChar :::
WhiteSpace
LineTerminator
WhiteSpace ::
<TAB>
<VT>
<FF>
<SP>
<NBSP>
<ZWNBSP>
<USP>
<USP> ::
Other category “Zs” code points
features: [u180e]
--- |
957 |
S9.3.1_A3_T1.js |
---
info: |
The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral
StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white
space is present or not
es5id: 9.3.1_A3_T1
description: static string
--- |
1613 |
S9.3.1_A3_T1_U180E.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
Ensure U+180E is not recognized as whitespace, test ToNumber with static string
info: |
7.1.3.1 ToNumber Applied to the String Type
If the grammar cannot interpret the String as an expansion of
StringNumericLiteral, then the result of ToNumber is NaN.
StringNumericLiteral :::
StrWhiteSpace_opt StrNumericLiteral StrWhiteSpace_opt
StrWhiteSpace :::
StrWhiteSpaceChar StrWhiteSpace_opt
StrWhiteSpaceChar :::
WhiteSpace
LineTerminator
WhiteSpace ::
<TAB>
<VT>
<FF>
<SP>
<NBSP>
<ZWNBSP>
<USP>
<USP> ::
Other category “Zs” code points
features: [u180e]
--- |
1258 |
S9.3.1_A3_T2.js |
---
info: |
The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral
StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white
space is present or not
es5id: 9.3.1_A3_T2
description: dynamic string
--- |
1476 |
S9.3.1_A3_T2_U180E.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
Ensure U+180E is not recognized as whitespace, test ToNumber with dynamic string
info: |
7.1.3.1 ToNumber Applied to the String Type
If the grammar cannot interpret the String as an expansion of
StringNumericLiteral, then the result of ToNumber is NaN.
StringNumericLiteral :::
StrWhiteSpace_opt StrNumericLiteral StrWhiteSpace_opt
StrWhiteSpace :::
StrWhiteSpaceChar StrWhiteSpace_opt
StrWhiteSpaceChar :::
WhiteSpace
LineTerminator
WhiteSpace ::
<TAB>
<VT>
<FF>
<SP>
<NBSP>
<ZWNBSP>
<USP>
<USP> ::
Other category “Zs” code points
features: [u180e]
--- |
1407 |
S9.3.1_A4_T1.js |
---
info: |
The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of
StrUnsignedDecimalLiteral
es5id: 9.3.1_A4_T1
description: Compare Number('+any_number') with Number('any_number')
--- |
855 |
S9.3.1_A4_T2.js |
---
info: |
The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of
StrUnsignedDecimalLiteral
es5id: 9.3.1_A4_T2
description: Compare Number('+' + 'any_number') with Number('any_number')
--- |
969 |
S9.3.1_A5_T1.js |
---
info: |
The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative
of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)
es5id: 9.3.1_A5_T1
description: Compare Number('-any_number') with -Number('any_number')
--- |
958 |
S9.3.1_A5_T2.js |
---
info: |
The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative
of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)
es5id: 9.3.1_A5_T2
description: Compare Number('-[or +]any_number') with -[or without -]any_number)
--- |
2188 |
S9.3.1_A5_T3.js |
---
info: |
The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative
of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)
es5id: 9.3.1_A5_T3
description: Compare Number('-' + 'any_number') with -Number('any_number')
--- |
1245 |
S9.3.1_A6_T1.js |
---
info: |
The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>
(a value so large that it will round to <b><tt>+∞</tt></b>)
es5id: 9.3.1_A6_T1
description: >
Compare Number('Infinity') with Number.POSITIVE_INFINITY,
10e10000, 10E10000 and Number("10e10000")
--- |
914 |
S9.3.1_A6_T2.js |
---
info: |
The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>
(a value so large that it will round to <b><tt>+∞</tt></b>)
es5id: 9.3.1_A6_T2
description: >
Compare Number('Infi'+'nity') with Number.POSITIVE_INFINITY,
10e10000, 10E10000 and Number("10e10000")
--- |
1150 |
S9.3.1_A7.js |
---
info: |
The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits
is the MV of the first DecimalDigits plus the MV of the second DecimalDigits times
10<sup><small>-n</small></sup>, where n is the number of characters in the second DecimalDigits
es5id: 9.3.1_A7
description: Compare Number('1234.5678') with Number('1234')+(+('5678')*1e-4)
--- |
657 |
S9.3.1_A8.js |
---
info: |
The MV of StrUnsignedDecimalLiteral::: DecimalDigits. ExponentPart
is the MV of DecimalDigits times 10<sup><small>e</small></sup> , where e is the MV of ExponentPart
es5id: 9.3.1_A8
description: >
Compare Number('1234e5') and Number('1234.e5') with
Number('1234')*1e5
--- |
639 |
S9.3.1_A9.js |
---
info: |
The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits ExponentPart
is (the MV of the first DecimalDigits plus (the MV of the second DecimalDigits times
10<sup><small>-n</small></sup>)) times 10<sup><small>e</small></sup>, where n is the number
of characters in the second DecimalDigits and e is the MV of ExponentPart
es5id: 9.3.1_A9
description: >
Compare Number('1234.5678e9') with
(Number('1234')+(Number('5678')*1e-4))*1e9, and +('1234.5678e-9')
with (Number('1234')+(Number('5678')*1e-4))*1e-9
--- |
1088 |
S9.3.1_A10.js |
---
info: |
The MV of StrUnsignedDecimalLiteral:::. DecimalDigits is the
MV of DecimalDigits times 10<sup><small>-n</small></sup>, where n is the
number of characters in DecimalDigits
es5id: 9.3.1_A10
description: Compare Number('.12345') with +('12345')*1e-5
--- |
479 |
S9.3.1_A11.js |
---
info: |
The MV of StrUnsignedDecimalLiteral:::. DecimalDigits ExponentPart
is the MV of DecimalDigits times 10<sup><small>e-n</small></sup>, where n is
the number of characters in DecimalDigits and e is the MV of ExponentPart
es5id: 9.3.1_A11
description: >
Compare Number('.12345e6') with +('12345')*1e1, and
Number('.12345e-3') !== Number('12345')*1e-8
--- |
646 |
S9.3.1_A12.js |
---
info: |
The MV of StrUnsignedDecimalLiteral::: DecimalDigits ExponentPart
is the MV of DecimalDigits times 10<sup><small>e</small></sup>, where e is the MV of ExponentPart
es5id: 9.3.1_A12
description: >
Compare Number('12345e6') with +('12345')*1e1, and
Number('12345e-6') !== Number('12345')*1e-6
--- |
669 |
S9.3.1_A13.js |
---
info: |
The MV of DecimalDigits ::: DecimalDigits DecimalDigit is
(the MV of DecimalDigits times 10) plus the MV of DecimalDigit
es5id: 9.3.1_A13
description: Compare '12' with Number("1")*10+Number("2") and analogous
--- |
643 |
S9.3.1_A14.js |
---
info: "The MV of SignedInteger ::: + DecimalDigits is the MV of DecimalDigits"
es5id: 9.3.1_A14
description: Compare Number('+1234567890') with +('1234567890')
--- |
428 |
S9.3.1_A15.js |
---
info: |
The MV of SignedInteger ::: - DecimalDigits is the negative of the MV of
DecimalDigits
es5id: 9.3.1_A15
description: Compare -Number('1234567890') with ('-1234567890')
--- |
473 |
S9.3.1_A16.js |
---
info: "The MV of DecimalDigit ::: 0 or of HexDigit ::: 0 is 0"
es5id: 9.3.1_A16
description: Compare Number('0x0') and Number('0X0') with 0
--- |
515 |
S9.3.1_A17.js |
---
info: "The MV of DecimalDigit ::: 1 or of HexDigit ::: 1 is 1"
es5id: 9.3.1_A17
description: Compare Number('0x1') and Number('0X1') with 1
--- |
515 |
S9.3.1_A18.js |
---
info: "The MV of DecimalDigit ::: 2 or of HexDigit ::: 2 is 2"
es5id: 9.3.1_A18
description: Compare Number('0x2') and Number('0X2') with 2
--- |
515 |
S9.3.1_A19.js |
---
info: "The MV of DecimalDigit ::: 3 or of HexDigit ::: 3 is 3"
es5id: 9.3.1_A19
description: Compare Number('0x3') and Number('0X3') with 3
--- |
515 |
S9.3.1_A20.js |
---
info: "The MV of DecimalDigit ::: 4 or of HexDigit ::: 4 is 4"
es5id: 9.3.1_A20
description: Compare Number('0x4') and Number('0X4') with 4
--- |
515 |
S9.3.1_A21.js |
---
info: "The MV of DecimalDigit ::: 5 or of HexDigit ::: 5 is 5"
es5id: 9.3.1_A21
description: Compare Number('0x5') and Number('0X5') with 5
--- |
515 |
S9.3.1_A22.js |
---
info: "The MV of DecimalDigit ::: 6 or of HexDigit ::: 6 is 6"
es5id: 9.3.1_A22
description: Compare Number('0x6') and Number('0X6') with 6
--- |
515 |
S9.3.1_A23.js |
---
info: "The MV of DecimalDigit ::: 7 or of HexDigit ::: 7 is 7"
es5id: 9.3.1_A23
description: Compare Number('0x7') and Number('0X7') with 7
--- |
515 |
S9.3.1_A24.js |
---
info: "The MV of DecimalDigit ::: 8 or of HexDigit ::: 8 is 8"
es5id: 9.3.1_A24
description: Compare Number('0x8') and Number('0X8') with 8
--- |
515 |
S9.3.1_A25.js |
---
info: "The MV of DecimalDigit ::: 9 or of HexDigit ::: 9 is 9"
es5id: 9.3.1_A25
description: Compare Number('0x9') and Number('0X9') with 9
--- |
515 |
S9.3.1_A26.js |
---
info: "The MV of HexDigit ::: a or of HexDigit ::: A is 10"
es5id: 9.3.1_A26
description: >
Compare Number('0xA'), Number('0XA'), Number('0xa') and
Number('0Xa') with 10
--- |
632 |
S9.3.1_A27.js |
---
info: "The MV of HexDigit ::: b or of HexDigit ::: B is 11"
es5id: 9.3.1_A27
description: >
Compare Number('0xB'), Number('0XB'), Number('0xb') and
Number('0Xb') with 11
--- |
632 |
S9.3.1_A28.js |
---
info: "The MV of HexDigit ::: c or of HexDigit ::: C is 12"
es5id: 9.3.1_A28
description: >
Compare Number('0xC'), Number('0XC'), Number('0xc') and
Number('0Xc') with 12
--- |
632 |
S9.3.1_A29.js |
---
info: "The MV of HexDigit ::: d or of HexDigit ::: D is 13"
es5id: 9.3.1_A29
description: >
Compare Number('0xD'), Number('0XD'), Number('0xd') and
Number('0Xd') with 13
--- |
632 |
S9.3.1_A30.js |
---
info: "The MV of HexDigit ::: e or of HexDigit ::: E is 14"
es5id: 9.3.1_A30
description: >
Compare Number('0xE'), Number('0XE'), Number('0xe') and
Number('0Xe') with 14
--- |
632 |
S9.3.1_A31.js |
---
info: "The MV of HexDigit ::: f or of HexDigit ::: F is 15"
es5id: 9.3.1_A31
description: >
Compare Number('0xF'), Number('0XF'), Number('0xf') and
Number('0Xf') with 15
--- |
632 |
S9.3.1_A32.js |
---
info: |
Once the exact MV for a string numeric literal has been
determined, it is then rounded to a value of the Number type with 20
significant digits by replacing each significant digit after the 20th
with a 0 digit or the number value
es5id: 9.3.1_A32
description: Use various long numbers, for example, 1234567890.1234567890
--- |
1266 |
S9.3_A1_T1.js |
---
info: Result of number conversion from undefined value is NaN
es5id: 9.3_A1_T1
description: Undefined convert to Number by explicit transformation
--- |
357 |
S9.3_A2_T1.js |
---
info: Result of number conversion from null value is +0
es5id: 9.3_A2_T1
description: null convert to Number by explicit transformation
--- |
368 |
S9.3_A3_T1.js |
---
info: |
Result of number conversion from boolean value is 1 if the argument is
true, else is +0
es5id: 9.3_A3_T1
description: False and true convert to Number by explicit transformation
--- |
495 |
S9.3_A4.1_T1.js |
---
info: |
Result of number conversion from number value equals to the input
argument (no conversion)
es5id: 9.3_A4.1_T1
description: >
Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are
converted to Number with explicit transformation
--- |
698 |
S9.3_A4.2_T1.js |
---
info: |
Result of number conversion from number value equals to the input
argument (no conversion)
es5id: 9.3_A4.2_T1
description: >
Number.NaN, +0, -0, Number.POSITIVE_INFINITY,
Number.NEGATIVE_INFINITY, Number.MAX_VALUE and Number.MIN_VALUE
convert to Number by explicit transformation
--- |
1222 |
S9.3_A5_T1.js |
---
info: |
Result of number conversion from object value is the result
of conversion from primitive value
es5id: 9.3_A5_T1
description: >
new Number(), new Number(0), new Number(Number.NaN), new
Number(null), new Number(void 0) and others convert to Number by
explicit transformation
--- |
2947 |
S15.7.1.1_A1.js |
---
info: |
Number([value]) returns a number value (not a Number object) computed by
ToNumber(value) if value was supplied
es5id: 15.7.1.1_A1
description: Used values "10", 10, new String("10"), new Object(10) and "abc"
--- |
1127 |
S15.7.1.1_A2.js |
---
info: Number() returns +0
es5id: 15.7.1.1_A2
description: Call Number() and check result
--- |
419 |
S15.7.2.1_A1.js |
---
info: |
When Number is called as part of a new expression it is
a constructor: it initialises the newly created object
es5id: 15.7.2.1_A1
description: Checking type of the newly created object and it value
--- |
1295 |
S15.7.2.1_A2.js |
---
info: |
The [[Prototype]] property of the newly constructed object
is set to the original Number prototype object, the one that is the
initial value of Number.prototype
es5id: 15.7.2.1_A2
description: Checking prototype property of the newly created objects
--- |
932 |
S15.7.2.1_A3.js |
---
info: |
The [[Value]] property of the newly constructed object
is set to ToNumber(value) if value was supplied, else to +0
es5id: 15.7.2.1_A3
description: Checking value of the newly created object
--- |
552 |
S15.7.2.1_A4.js |
---
info: |
The [[Class]] property of the newly constructed object
is set to "Number"
es5id: 15.7.2.1_A4
description: For testing toString function is used
--- |
489 |
S15.7.3_A1.js |
---
info: The Number constructor has the property "prototype"
es5id: 15.7.3_A1
description: Checking existence of the property "prototype"
--- |
401 |
S15.7.3_A2.js |
---
info: The Number constructor has the property "MAX_VALUE"
es5id: 15.7.3_A2
description: Checking existence of the property "MAX_VALUE"
--- |
401 |
S15.7.3_A3.js |
---
info: The Number constructor has the property "MIN_VALUE"
es5id: 15.7.3_A3
description: Checking existence of the property "MIN_VALUE"
--- |
401 |
S15.7.3_A4.js |
---
info: The Number constructor has the property "NaN"
es5id: 15.7.3_A4
description: Checking existence of the property "NaN"
--- |
377 |
S15.7.3_A5.js |
---
info: The Number constructor has the property "NEGATIVE_INFINITY"
es5id: 15.7.3_A5
description: Checking existence of the property "NEGATIVE_INFINITY"
--- |
439 |
S15.7.3_A6.js |
---
info: The Number constructor has the property "POSITIVE_INFINITY"
es5id: 15.7.3_A6
description: Checking existence of the property "POSITIVE_INFINITY"
--- |
439 |
S15.7.3_A7.js |
---
info: |
The value of the internal [[Prototype]] property of the Number
constructor is the Function prototype object
es5id: 15.7.3_A7
description: Checking Function.prototype.isPrototypeOf(Number)
--- |
488 |
S15.7.3_A8.js |
---
info: Number constructor has length property whose value is 1
es5id: 15.7.3_A8
description: Checking Number.length property
--- |
470 |
S15.7.5_A1_T01.js |
---
info: |
Number instances have no special properties beyond those
inherited from the Number prototype object
es5id: 15.7.5_A1_T01
description: Checking property constructor
--- |
683 |
S15.7.5_A1_T02.js |
---
info: |
Number instances have no special properties beyond those
inherited from the Number prototype object
es5id: 15.7.5_A1_T02
description: Checking property toString
--- |
662 |
S15.7.5_A1_T03.js |
---
info: |
Number instances have no special properties beyond those
inherited from the Number prototype object
es5id: 15.7.5_A1_T03
description: Checking property toLocaleString
--- |
704 |
S15.7.5_A1_T04.js |
---
info: |
Number instances have no special properties beyond those
inherited from the Number prototype object
es5id: 15.7.5_A1_T04
description: Checking property valueOf
--- |
655 |
S15.7.5_A1_T05.js |
---
info: |
Number instances have no special properties beyond those
inherited from the Number prototype object
es5id: 15.7.5_A1_T05
description: Checking property toFixed
--- |
655 |
S15.7.5_A1_T06.js |
---
info: |
Number instances have no special properties beyond those
inherited from the Number prototype object
es5id: 15.7.5_A1_T06
description: Checking property toExponential
--- |
697 |
S15.7.5_A1_T07.js |
---
info: |
Number instances have no special properties beyond those
inherited from the Number prototype object
es5id: 15.7.5_A1_T07
description: Checking property toPrecision
--- |
683 |
shell.js |
---
description: |
Test if a given function is a constructor function.
defines: [isConstructor]
features: [Reflect.construct]
--- |
596 |
string-binary-literal-invalid.js |
---
es6id: 20.1.1.1
description: Invalid binary literals yield NaN
info: |
BinaryIntegerLiteral ::
0b BinaryDigits
0B BinaryDigits
BinaryDigits ::
BinaryDigit
BinaryDigits BinaryDigit
BinaryDigit :: one of
0 1
--- |
963 |
string-binary-literal.js |
---
es6id: 20.1.1.1
description: Mathematical value of valid binary integer literals
info: |
20.1.1.1 Number ( [ value ] )
When Number is called with argument number, the following steps are taken:
1. If no arguments were passed to this function invocation, let n be +0.
2. Else, let n be ToNumber(value).
[...]
7.1.3.1 ToNumber Applied to the String Type
All grammar symbols not explicitly defined above have the definitions used
in the Lexical Grammar for numeric literals (11.8.3)
[...]
The MV of BinaryIntegerLiteral :: 0b BinaryDigits is the MV of
BinaryDigits.
The MV of BinaryIntegerLiteral :: 0B BinaryDigits is the MV of
BinaryDigits.
The MV of BinaryDigits :: BinaryDigit is the MV of BinaryDigit.
The MV of BinaryDigits :: BinaryDigits BinaryDigit is (the MV of
BinaryDigits × 2) plus the MV of BinaryDigit.
--- |
2112 |
string-hex-literal-invalid.js |
---
esid: sec-number-constructor-number-value
description: Invalid hex literals yield NaN
info: |
HexIntegerLiteral ::
0x HexDigits
0X HexDigits
HexDigits ::
HexDigit
HexDigits HexDigit
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
--- |
941 |
string-numeric-separator-literal-bil-bd-nsl-bd.js |
---
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]
--- |
765 |
string-numeric-separator-literal-bil-bd-nsl-bds.js |
---
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]
--- |
769 |
string-numeric-separator-literal-bil-bds-nsl-bd.js |
---
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]
--- |
770 |
string-numeric-separator-literal-bil-bds-nsl-bds.js |
---
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]
--- |
774 |
string-numeric-separator-literal-dd-dot-dd-ep-sign-minus-dd-nsl-dd.js |
---
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]
--- |
735 |
string-numeric-separator-literal-dd-dot-dd-ep-sign-minus-dds-nsl-dd.js |
---
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]
--- |
737 |
string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dd-nsl-dd.js |
---
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]
--- |
735 |
string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js |
---
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]
--- |
737 |
string-numeric-separator-literal-dd-nsl-dd-one-of.js |
---
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]
--- |
1082 |
string-numeric-separator-literal-dds-dot-dd-nsl-dd-ep-dd.js |
---
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]
--- |
728 |
string-numeric-separator-literal-dds-nsl-dd.js |
---
esid: prod-NumericLiteralSeparator
description: DecimalDigits NumericLiteralSeparator DecimalDigit
info: |
NumericLiteralSeparator :: _
DecimalDigits ::
...
DecimalDigits NumericLiteralSeparator DecimalDigit
features: [numeric-separator-literal]
--- |
1043 |
string-numeric-separator-literal-dot-dd-nsl-dd-ep.js |
---
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]
--- |
705 |
string-numeric-separator-literal-dot-dd-nsl-dds-ep.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`.` DecimalDigit NumericLiteralSeparator DecimalDigits ExponentPart
NumericLiteralSeparator ::
_
DecimalLiteral ::
. DecimalDigits ExponentPart_opt
DecimalDigits ::
DecimalDigit
...
DecimalDigits NumericLiteralSeparator DecimalDigit
ExponentIndicator :: one of
e E
features: [numeric-separator-literal]
--- |
708 |
string-numeric-separator-literal-dot-dds-nsl-dd-ep.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`.` DecimalDigits NumericLiteralSeparator DecimalDigit ExponentPart
NumericLiteralSeparator ::
_
DecimalLiteral ::
. DecimalDigits ExponentPart_opt
DecimalDigits ::
DecimalDigit
...
DecimalDigits NumericLiteralSeparator DecimalDigit
ExponentIndicator :: one of
e E
features: [numeric-separator-literal]
--- |
708 |
string-numeric-separator-literal-dot-dds-nsl-dds-ep.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`.` DecimalDigits NumericLiteralSeparator DecimalDigits ExponentPart
NumericLiteralSeparator ::
_
DecimalLiteral ::
. DecimalDigits ExponentPart_opt
DecimalDigits ::
DecimalDigit
...
DecimalDigits NumericLiteralSeparator DecimalDigit
ExponentIndicator :: one of
e E
features: [numeric-separator-literal]
--- |
711 |
string-numeric-separator-literal-hil-hd-nsl-hd.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0x` | `0X` HexDigit NumericLiteralSeparator HexDigit
NumericLiteralSeparator ::
_
HexIntegerLiteral ::
0x HexDigits
0X HexDigits
HexDigits ::
HexDigit
HexDigits HexDigit
HexDigits NumericLiteralSeparator HexDigit
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]
--- |
767 |
string-numeric-separator-literal-hil-hd-nsl-hds.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0x` | `0X` HexDigit NumericLiteralSeparator HexDigit
NumericLiteralSeparator ::
_
HexIntegerLiteral ::
0x HexDigits
0X HexDigits
HexDigits ::
HexDigit
HexDigits HexDigit
HexDigits NumericLiteralSeparator HexDigit
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]
--- |
771 |
string-numeric-separator-literal-hil-hds-nsl-hd.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0x` | `0X` HexDigits NumericLiteralSeparator HexDigit
NumericLiteralSeparator ::
_
HexIntegerLiteral ::
0x HexDigits
0X HexDigits
HexDigits ::
HexDigit
HexDigits HexDigit
HexDigits NumericLiteralSeparator HexDigit
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]
--- |
772 |
string-numeric-separator-literal-hil-hds-nsl-hds.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0x` | `0X` HexDigits NumericLiteralSeparator HexDigit
NumericLiteralSeparator ::
_
HexIntegerLiteral ::
0x HexDigits
0X HexDigits
HexDigits ::
HexDigit
HexDigits HexDigit
HexDigits NumericLiteralSeparator HexDigit
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]
--- |
776 |
string-numeric-separator-literal-hil-od-nsl-od-one-of.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0x` | `0X` HexDigit NumericLiteralSeparator HexDigit
NumericLiteralSeparator ::
_
HexIntegerLiteral ::
0x HexDigits
0X HexDigits
HexDigits ::
HexDigit
HexDigits HexDigit
HexDigits NumericLiteralSeparator HexDigit
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]
--- |
1747 |
string-numeric-separator-literal-nzd-nsl-dd-one-of.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
NonZeroDigit NumericLiteralSeparator DecimalDigits
NumericLiteralSeparator ::
_
DecimalIntegerLiteral ::
...
NonZeroDigit NumericLiteralSeparator_opt DecimalDigits
NonZeroDigit :: one of
1 2 3 4 5 6 7 8 9
DecimalDigits ::
DecimalDigit
...
DecimalDigit :: one of
0 1 2 3 4 5 6 7 8 9
features: [numeric-separator-literal]
--- |
1129 |
string-numeric-separator-literal-nzd-nsl-dd.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
NonZeroDigit NumericLiteralSeparator DecimalDigits
NumericLiteralSeparator ::
_
DecimalIntegerLiteral ::
...
NonZeroDigit NumericLiteralSeparator_opt DecimalDigits
NonZeroDigit :: one of
1 2 3 4 5 6 7 8 9
DecimalDigits ::
...
DecimalDigits DecimalDigit
...
features: [numeric-separator-literal]
--- |
696 |
string-numeric-separator-literal-nzd-nsl-dds.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
NonZeroDigit NumericLiteralSeparator DecimalDigits
NumericLiteralSeparator ::
_
DecimalIntegerLiteral ::
...
NonZeroDigit NumericLiteralSeparator_opt DecimalDigits
NonZeroDigit :: one of
1 2 3 4 5 6 7 8 9
DecimalDigits ::
...
DecimalDigits DecimalDigit
...
features: [numeric-separator-literal]
--- |
714 |
string-numeric-separator-literal-oil-od-nsl-od-one-of.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0o` | `0O` OctalDigit NumericLiteralSeparator OctalDigit
NumericLiteralSeparator ::
_
OctalIntegerLiteral ::
0o OctalDigits
0O OctalDigits
OctalDigits ::
OctalDigit
OctalDigits OctalDigit
OctalDigits NumericLiteralSeparator OctalDigit
OctalDigit :: one of
0 1 2 3 4 5 6 7
features: [numeric-separator-literal]
--- |
1059 |
string-numeric-separator-literal-oil-od-nsl-od.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0o` | `0O` OctalDigit NumericLiteralSeparator OctalDigit
NumericLiteralSeparator ::
_
OctalIntegerLiteral ::
0o OctalDigits
0O OctalDigits
OctalDigits ::
OctalDigit
OctalDigits OctalDigit
OctalDigits NumericLiteralSeparator OctalDigit
OctalDigit :: one of
0 1 2 3 4 5 6 7
features: [numeric-separator-literal]
--- |
765 |
string-numeric-separator-literal-oil-od-nsl-ods.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0o` | `0O` OctalDigit NumericLiteralSeparator OctalDigit
NumericLiteralSeparator ::
_
OctalIntegerLiteral ::
0o OctalDigits
0O OctalDigits
OctalDigits ::
OctalDigit
OctalDigits OctalDigit
OctalDigits NumericLiteralSeparator OctalDigit
OctalDigit :: one of
0 1 2 3 4 5 6 7
features: [numeric-separator-literal]
--- |
769 |
string-numeric-separator-literal-oil-ods-nsl-od.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0o` | `0O` OctalDigits NumericLiteralSeparator OctalDigit
NumericLiteralSeparator ::
_
OctalIntegerLiteral ::
0o OctalDigits
0O OctalDigits
OctalDigits ::
OctalDigit
OctalDigits OctalDigit
OctalDigits NumericLiteralSeparator OctalDigit
OctalDigit :: one of
0 1 2 3 4 5 6 7
features: [numeric-separator-literal]
--- |
770 |
string-numeric-separator-literal-oil-ods-nsl-ods.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
`0o` | `0O` OctalDigits NumericLiteralSeparator OctalDigit
NumericLiteralSeparator ::
_
OctalIntegerLiteral ::
0o OctalDigits
0O OctalDigits
OctalDigits ::
OctalDigit
OctalDigits OctalDigit
OctalDigits NumericLiteralSeparator OctalDigit
OctalDigit :: one of
0 1 2 3 4 5 6 7
features: [numeric-separator-literal]
--- |
774 |
string-numeric-separator-literal-sign-minus-dds-nsl-dd.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
DecimalDigits NumericLiteralSeparator DecimalDigit
NumericLiteralSeparator ::
_
SignedInteger ::
...
- DecimalDigits
features: [numeric-separator-literal]
--- |
1119 |
string-numeric-separator-literal-sign-plus-dds-nsl-dd.js |
---
esid: prod-NumericLiteralSeparator
description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
info: |
DecimalDigits NumericLiteralSeparator DecimalDigit
NumericLiteralSeparator ::
_
SignedInteger ::
...
+ DecimalDigits
...
features: [numeric-separator-literal]
--- |
1128 |
string-octal-literal-invald.js |
---
es6id: 20.1.1.1
description: Invalid octal literals yield NaN
info: |
OctalIntegerLiteral ::
0o OctalDigits
0O OctalDigits
OctalDigits ::
OctalDigit
OctalDigits OctalDigit
OctalDigit :: one of
0 1 2 3 4 5 6 7
--- |
969 |
string-octal-literal.js |
---
es6id: 20.1.1.1
description: Mathematical value of valid octal integer literals
info: |
20.1.1.1 Number ( [ value ] )
When Number is called with argument number, the following steps are taken:
1. If no arguments were passed to this function invocation, let n be +0.
2. Else, let n be ToNumber(value).
[...]
7.1.3.1 ToNumber Applied to the String Type
All grammar symbols not explicitly defined above have the definitions used
in the Lexical Grammar for numeric literals (11.8.3)
[...]
The MV of OctalIntegerLiteral :: 0o OctalDigits is the MV of OctalDigits.
The MV of OctalIntegerLiteral :: 0O OctalDigits is the MV of OctalDigits.
The MV of OctalDigits :: OctalDigit is the MV of OctalDigit.
The MV of OctalDigits :: OctalDigits OctalDigit is (the MV of OctalDigits ×
8) plus the MV of OctalDigit.
--- |
2619 |