| 15.1.2.3-2-1.js |
---
es5id: 15.1.2.3-2-1
es6id: 18.2.4
esid: sec-parsefloat-string
description: >
pareseFloat - 'trimmedString' is the empty string when inputString
does not contain any such characters
--- |
395 |
- |
| name.js |
---
es6id: 18.2.4
esid: sec-parsefloat-string
description: >
parseFloat.name is "parseFloat".
info: |
parseFloat (string)
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
866 |
- |
| S15.1.2.3_A1_T1.js |
---
info: Operator use ToString
es5id: 15.1.2.3_A1_T1
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking for boolean primitive
--- |
382 |
- |
| S15.1.2.3_A1_T2.js |
---
info: Operator use ToString
es5id: 15.1.2.3_A1_T2
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking for number primitive
--- |
1145 |
- |
| S15.1.2.3_A1_T3.js |
---
info: Operator use ToString
es5id: 15.1.2.3_A1_T3
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking for undefined and null
--- |
391 |
- |
| S15.1.2.3_A1_T4.js |
---
info: Operator use ToString
es5id: 15.1.2.3_A1_T4
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking for Boolean object
--- |
431 |
- |
| S15.1.2.3_A1_T5.js |
---
info: Operator use ToString
es5id: 15.1.2.3_A1_T5
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking for Number object
--- |
1038 |
- |
| S15.1.2.3_A1_T6.js |
---
info: Operator use ToString
es5id: 15.1.2.3_A1_T6
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking for String object
--- |
1253 |
- |
| S15.1.2.3_A1_T7.js |
---
info: Operator use ToString
es5id: 15.1.2.3_A1_T7
es6id: 18.2.4
esid: sec-parsefloat-string
description: If Type(value) is Object, evaluate ToPrimitive(value, String)
--- |
3369 |
- |
| S15.1.2.3_A2_T1.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T1
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: TAB (U+0009)"
--- |
1254 |
- |
| S15.1.2.3_A2_T2.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T2
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: SP (U+0020)"
--- |
1277 |
- |
| S15.1.2.3_A2_T3.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T3
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: NBSB (U+00A0)"
--- |
723 |
- |
| S15.1.2.3_A2_T4.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T4
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: FF (U+000C)"
--- |
721 |
- |
| S15.1.2.3_A2_T5.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T5
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: VT (U+000B)"
--- |
721 |
- |
| S15.1.2.3_A2_T6.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T6
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: CR (U+000D)"
--- |
721 |
- |
| S15.1.2.3_A2_T7.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T7
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: LF (U+000A)"
--- |
721 |
- |
| S15.1.2.3_A2_T8.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T8
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: LS (U+2028)"
--- |
721 |
- |
| S15.1.2.3_A2_T9.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T9
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: PS (U+2029)"
--- |
721 |
- |
| S15.1.2.3_A2_T10.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.3_A2_T10
es6id: 18.2.4
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: USP"
--- |
1290 |
- |
| S15.1.2.3_A2_T10_U180E.js |
---
es6id: 18.2.4
esid: sec-parsefloat-string
description: >
Leading U+180E is not recognized as whitespace
info: |
18.2.4 parseFloat (string)
...
3. Let trimmedString be a substring of inputString consisting of the
leftmost code unit that is not a StrWhiteSpaceChar and all code units
to the right of that code unit. (In other words, remove leading white
space.) If inputString does not contain any such code units, let
trimmedString be the empty string.
4. If neither trimmedString nor any prefix of trimmedString satisfies the
syntax of a StrDecimalLiteral (see 7.1.3.1), return NaN.
...
features: [u180e]
--- |
1143 |
- |
| S15.1.2.3_A3_T1.js |
---
info: |
If neither Result(2) nor any prefix of Result(2) satisfies the syntax of a
StrDecimalLiteral (see 9.3.1), return NaN
es5id: 15.1.2.3_A3_T1
es6id: 18.2.4
esid: sec-parsefloat-string
description: parseFloat("some string") return NaN
--- |
577 |
- |
| S15.1.2.3_A3_T2.js |
---
info: |
If neither Result(2) nor any prefix of Result(2) satisfies the syntax of a
StrDecimalLiteral (see 9.3.1), return NaN
es5id: 15.1.2.3_A3_T2
es6id: 18.2.4
esid: sec-parsefloat-string
description: parseFloat("wrong number format with ExponentIndicator") return NaN
--- |
718 |
- |
| S15.1.2.3_A3_T3.js |
---
info: |
If neither Result(2) nor any prefix of Result(2) satisfies the syntax of a
StrDecimalLiteral (see 9.3.1), return NaN
es5id: 15.1.2.3_A3_T3
es6id: 18.2.4
esid: sec-parsefloat-string
description: parseFloat("wrong numbr format") return NaN
--- |
598 |
- |
| S15.1.2.3_A4_T1.js |
---
info: |
Compute the longest prefix of Result(2), which might be Result(2) itself,
which satisfies the syntax of a StrDecimalLiteral
es5id: 15.1.2.3_A4_T1
es6id: 18.2.4
esid: sec-parsefloat-string
description: Some wrong number
--- |
1467 |
- |
| S15.1.2.3_A4_T2.js |
---
info: |
Compute the longest prefix of Result(2), which might be Result(2) itself,
which satisfies the syntax of a StrDecimalLiteral
es5id: 15.1.2.3_A4_T2
es6id: 18.2.4
esid: sec-parsefloat-string
description: With ExponentIndicator
--- |
1006 |
- |
| S15.1.2.3_A4_T3.js |
---
info: |
Compute the longest prefix of Result(2), which might be Result(2) itself,
which satisfies the syntax of a StrDecimalLiteral
es5id: 15.1.2.3_A4_T3
es6id: 18.2.4
esid: sec-parsefloat-string
description: StrDecimalLiteral not contain HexIntegerLiteral
--- |
2282 |
- |
| S15.1.2.3_A4_T4.js |
---
info: |
Compute the longest prefix of Result(2), which might be Result(2) itself,
which satisfies the syntax of a StrDecimalLiteral
es5id: 15.1.2.3_A4_T4
es6id: 18.2.4
esid: sec-parsefloat-string
description: "\"Infinity\"+\"some string\""
--- |
939 |
- |
| S15.1.2.3_A4_T5.js |
---
info: |
Compute the longest prefix of Result(2), which might be Result(2) itself,
which satisfies the syntax of a StrDecimalLiteral
es5id: 15.1.2.3_A4_T5
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking DecimalDigits . DecimalDigits_opt ExponentPart_opt
--- |
1878 |
- |
| S15.1.2.3_A4_T6.js |
---
info: |
Compute the longest prefix of Result(2), which might be Result(2) itself,
which satisfies the syntax of a StrDecimalLiteral
es5id: 15.1.2.3_A4_T6
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking . DecimalDigits ExponentPart_opt
--- |
839 |
- |
| S15.1.2.3_A4_T7.js |
---
info: |
Compute the longest prefix of Result(2), which might be Result(2) itself,
which satisfies the syntax of a StrDecimalLiteral
es5id: 15.1.2.3_A4_T7
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking DecimalDigits ExponentPart_opt
--- |
1378 |
- |
| S15.1.2.3_A5_T1.js |
---
info: Return the number value for the MV of Result(4)
es5id: 15.1.2.3_A5_T1
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking Infinity
--- |
834 |
- |
| S15.1.2.3_A5_T2.js |
---
info: Return the number value for the MV of Result(4)
es5id: 15.1.2.3_A5_T2
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking DecimalDigits . DecimalDigits_opt ExponentPart_opt
--- |
1612 |
- |
| S15.1.2.3_A5_T3.js |
---
info: Return the number value for the MV of Result(4)
es5id: 15.1.2.3_A5_T3
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking . DecimalDigits ExponentPart_opt
--- |
699 |
- |
| S15.1.2.3_A5_T4.js |
---
info: Return the number value for the MV of Result(4)
es5id: 15.1.2.3_A5_T4
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking DecimalDigits ExponentPart_opt
--- |
1166 |
- |
| S15.1.2.3_A6.js |
---
info: |
parseFloat may interpret only a leading portion of the string as
a number value; it ignores any characters that cannot be interpreted as part
of the notation of an decimal literal, and no indication is given that any such
characters were ignored.
es5id: 15.1.2.3_A6
es6id: 18.2.4
esid: sec-parsefloat-string
description: Complex test without eval
includes: [decimalToHexString.js]
--- |
1720 |
- |
| S15.1.2.3_A7.1.js |
---
info: The length property of parseFloat has the attribute DontEnum
es5id: 15.1.2.3_A7.1
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking use propertyIsEnumerable, for-in
--- |
775 |
- |
| S15.1.2.3_A7.2.js |
---
info: The length property of parseFloat does not have the attribute DontDelete
es5id: 15.1.2.3_A7.2
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking use hasOwnProperty, delete
--- |
876 |
- |
| S15.1.2.3_A7.3.js |
---
info: The length property of parseFloat has the attribute ReadOnly
es5id: 15.1.2.3_A7.3
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking if varying the length property fails
includes: [propertyHelper.js]
--- |
618 |
- |
| S15.1.2.3_A7.4.js |
---
info: The length property of parseFloat is 1
es5id: 15.1.2.3_A7.4
es6id: 18.2.4
esid: sec-parsefloat-string
description: parseFloat.length === 1
--- |
407 |
- |
| S15.1.2.3_A7.5.js |
---
info: The parseFloat property has the attribute DontEnum
es5id: 15.1.2.3_A7.5
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking use propertyIsEnumerable, for-in
--- |
754 |
- |
| S15.1.2.3_A7.6.js |
---
info: The parseFloat property has not prototype property
es5id: 15.1.2.3_A7.6
es6id: 18.2.4
esid: sec-parsefloat-string
description: Checking parseFloat.prototype
--- |
450 |
- |
| S15.1.2.3_A7.7.js |
---
info: The parseFloat property can't be used as constructor
es5id: 15.1.2.3_A7.7
es6id: 18.2.4
esid: sec-parsefloat-string
description: >
If property does not implement the internal [[Construct]] method,
throw a TypeError exception
--- |
638 |
- |
| tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-minus-dd-nsl-dd.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - StrDecimalDigits . StrDecimalDigits StrExponentPart
info: |
StrUnsignedDecimalLiteral :::
StrDecimalDigits . StrDecimalDigits StrExponentPart
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits NumericLiteralSeparator DecimalDigit
features: [numeric-separator-literal]
--- |
608 |
- |
| tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-minus-dds-nsl-dd.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - StrDecimalDigits . StrDecimalDigits StrExponentPart
info: |
StrUnsignedDecimalLiteral :::
StrDecimalDigits . StrDecimalDigits StrExponentPart
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits NumericLiteralSeparator DecimalDigit
features: [numeric-separator-literal]
--- |
610 |
- |
| tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dd-nsl-dd.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - StrDecimalDigits . StrDecimalDigits StrExponentPart
info: |
StrUnsignedDecimalLiteral :::
StrDecimalDigits . StrDecimalDigits StrExponentPart
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits NumericLiteralSeparator DecimalDigit
features: [numeric-separator-literal]
--- |
608 |
- |
| tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - StrDecimalDigits . StrDecimalDigits StrExponentPart
info: |
StrUnsignedDecimalLiteral :::
StrDecimalDigits . StrDecimalDigits StrExponentPart
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits NumericLiteralSeparator DecimalDigit
features: [numeric-separator-literal]
--- |
610 |
- |
| tonumber-numeric-separator-literal-dd-nsl-dd-one-of.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - StrUnsignedDecimalLiteral
info: |
StrStrUnsignedDecimalLiteral :::
StrUnsignedDecimalLiteral
StrDecimalDigits :::
DecimalDigit
...
DecimalDigit ::: one of
0 1 2 3 4 5 6 7 8 9
features: [numeric-separator-literal]
--- |
910 |
- |
| tonumber-numeric-separator-literal-dds-dot-dd-nsl-dd-ep-dd.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - StrDecimalDigits . StrDecimalDigits StrExponentPart
info: |
StrUnsignedDecimalLiteral :::
. StrDecimalDigits StrExponentPart
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits DecimalDigit
features: [numeric-separator-literal]
--- |
567 |
- |
| tonumber-numeric-separator-literal-dds-nsl-dd.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - StrDecimalDigits
info: |
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits DecimalDigit
features: [numeric-separator-literal]
--- |
969 |
- |
| tonumber-numeric-separator-literal-dot-dd-nsl-dd-ep.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - . StrDecimalDigits StrExponentPart
info: |
StrUnsignedDecimalLiteral :::
. StrDecimalDigits StrExponentPart
StrDecimalDigits :::
DecimalDigit
...
StrDecimalDigits DecimalDigit
features: [numeric-separator-literal]
--- |
551 |
- |
| tonumber-numeric-separator-literal-dot-dd-nsl-dds-ep.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - . StrDecimalDigits StrExponentPart
info: |
StrUnsignedDecimalLiteral :::
. StrDecimalDigits StrExponentPart
StrDecimalDigits :::
DecimalDigit
...
StrDecimalDigits DecimalDigit
features: [numeric-separator-literal]
--- |
552 |
- |
| tonumber-numeric-separator-literal-dot-dds-nsl-dd-ep.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - . StrDecimalDigits StrExponentPart
info: |
StrUnsignedDecimalLiteral :::
. StrDecimalDigits StrExponentPart
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits DecimalDigit
features: [numeric-separator-literal]
--- |
545 |
- |
| tonumber-numeric-separator-literal-dot-dds-nsl-dds-ep.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - . StrDecimalDigits StrExponentPart
info: |
StrUnsignedDecimalLiteral :::
. StrDecimalDigits StrExponentPart
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits DecimalDigit
features: [numeric-separator-literal]
--- |
546 |
- |
| tonumber-numeric-separator-literal-nzd-nsl-dd-one-of.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - NonZeroDigit NumericLiteralSeparator DecimalDigit
info: |
StrUnsignedDecimalLiteral :::
StrUnsignedDecimalLiteral
NonZeroDigit ::: one of
1 2 3 4 5 6 7 8 9
StrDecimalDigits :::
DecimalDigit
...
DecimalDigit ::: one of
0 1 2 3 4 5 6 7 8 9
features: [numeric-separator-literal]
--- |
979 |
- |
| tonumber-numeric-separator-literal-nzd-nsl-dd.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - StrDecimalDigits
info: |
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits DecimalDigit
...
features: [numeric-separator-literal]
--- |
457 |
- |
| tonumber-numeric-separator-literal-nzd-nsl-dds.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat - DecimalDigit
info: |
StrDecimalDigits :::
DecimalDigit
StrDecimalDigits DecimalDigit
features: [numeric-separator-literal]
--- |
454 |
- |
| tonumber-numeric-separator-literal-sign-plus-dds-nsl-dd.js |
---
esid: sec-tonumber-applied-to-the-string-type
description: >
The NSL does not affect strings parsed by parseFloat (StrUnsignedDecimalLiteral)
info: |
StrDecimalLiteral :::
StrUnsignedDecimalLiteral
+ StrUnsignedDecimalLiteral
- StrUnsignedDecimalLiteral
features: [numeric-separator-literal]
--- |
1041 |
- |