15.1.2.3-2-1.js |
---
esid: sec-parsefloat-string
description: >
pareseFloat - 'trimmedString' is the empty string when inputString
does not contain any such characters
--- |
383 |
browser.js |
|
0 |
name.js |
---
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]
--- |
829 |
not-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
parseFloat does not implement [[Construct]], is not new-able
info: |
ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js]
features: [Reflect.construct, arrow-function]
--- |
863 |
prop-desc.js |
---
esid: sec-parsefloat-string
description: >
Property descriptor for parseFloat
info: |
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]
--- |
594 |
S15.1.2.3_A1_T1.js |
---
info: Operator use ToString
esid: sec-parsefloat-string
description: Checking for boolean primitive
--- |
368 |
S15.1.2.3_A1_T2.js |
---
info: Operator use ToString
esid: sec-parsefloat-string
description: Checking for number primitive
--- |
1227 |
S15.1.2.3_A1_T3.js |
---
info: Operator use ToString
esid: sec-parsefloat-string
description: Checking for undefined and null
--- |
377 |
S15.1.2.3_A1_T4.js |
---
info: Operator use ToString
esid: sec-parsefloat-string
description: Checking for Boolean object
--- |
417 |
S15.1.2.3_A1_T5.js |
---
info: Operator use ToString
esid: sec-parsefloat-string
description: Checking for Number object
--- |
1088 |
S15.1.2.3_A1_T6.js |
---
info: Operator use ToString
esid: sec-parsefloat-string
description: Checking for String object
--- |
1319 |
S15.1.2.3_A1_T7.js |
---
info: Operator use ToString
esid: sec-parsefloat-string
description: If Type(value) is Object, evaluate ToPrimitive(value, String)
--- |
3531 |
S15.1.2.3_A2_T1.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: TAB (U+0009)"
--- |
1320 |
S15.1.2.3_A2_T2.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: SP (U+0020)"
--- |
1343 |
S15.1.2.3_A2_T3.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: NBSB (U+00A0)"
--- |
741 |
S15.1.2.3_A2_T4.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: FF (U+000C)"
--- |
739 |
S15.1.2.3_A2_T5.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: VT (U+000B)"
--- |
739 |
S15.1.2.3_A2_T6.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: CR (U+000D)"
--- |
739 |
S15.1.2.3_A2_T7.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: LF (U+000A)"
--- |
739 |
S15.1.2.3_A2_T8.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: LS (U+2028)"
--- |
739 |
S15.1.2.3_A2_T9.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: PS (U+2029)"
--- |
739 |
S15.1.2.3_A2_T10.js |
---
info: Operator remove leading StrWhiteSpaceChar
esid: sec-parsefloat-string
description: "StrWhiteSpaceChar :: USP"
--- |
1032 |
S15.1.2.3_A2_T10_U180E.js |
---
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]
--- |
1151 |
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
esid: sec-parsefloat-string
description: parseFloat("some string") return NaN
--- |
563 |
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
esid: sec-parsefloat-string
description: parseFloat("wrong number format with ExponentIndicator") return NaN
--- |
704 |
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
esid: sec-parsefloat-string
description: parseFloat("wrong numbr format") return NaN
--- |
584 |
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
esid: sec-parsefloat-string
description: Some wrong number
--- |
1597 |
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
esid: sec-parsefloat-string
description: With ExponentIndicator
--- |
1072 |
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
esid: sec-parsefloat-string
description: StrDecimalLiteral not contain HexIntegerLiteral
--- |
2524 |
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
esid: sec-parsefloat-string
description: "\"Infinity\"+\"some string\""
--- |
973 |
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
esid: sec-parsefloat-string
description: Checking DecimalDigits . DecimalDigits_opt ExponentPart_opt
--- |
2024 |
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
esid: sec-parsefloat-string
description: Checking . DecimalDigits ExponentPart_opt
--- |
873 |
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
esid: sec-parsefloat-string
description: Checking DecimalDigits ExponentPart_opt
--- |
1476 |
S15.1.2.3_A5_T1.js |
---
info: Return the number value for the MV of Result(4)
esid: sec-parsefloat-string
description: Checking Infinity
--- |
868 |
S15.1.2.3_A5_T2.js |
---
info: Return the number value for the MV of Result(4)
esid: sec-parsefloat-string
description: Checking DecimalDigits . DecimalDigits_opt ExponentPart_opt
--- |
1758 |
S15.1.2.3_A5_T3.js |
---
info: Return the number value for the MV of Result(4)
esid: sec-parsefloat-string
description: Checking . DecimalDigits ExponentPart_opt
--- |
733 |
S15.1.2.3_A5_T4.js |
---
info: Return the number value for the MV of Result(4)
esid: sec-parsefloat-string
description: Checking DecimalDigits ExponentPart_opt
--- |
1264 |
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.
esid: sec-parsefloat-string
description: Complex test without eval
includes: [decimalToHexString.js]
--- |
1748 |
S15.1.2.3_A7.1.js |
---
info: The length property of parseFloat has the attribute DontEnum
esid: sec-parsefloat-string
description: Checking use propertyIsEnumerable, for-in
--- |
794 |
S15.1.2.3_A7.2.js |
---
info: The length property of parseFloat does not have the attribute DontDelete
esid: sec-parsefloat-string
description: Checking use hasOwnProperty, delete
--- |
911 |
S15.1.2.3_A7.3.js |
---
info: The length property of parseFloat has the attribute ReadOnly
esid: sec-parsefloat-string
description: Checking if varying the length property fails
includes: [propertyHelper.js]
--- |
621 |
S15.1.2.3_A7.4.js |
---
info: The length property of parseFloat is 1
esid: sec-parsefloat-string
description: parseFloat.length === 1
--- |
410 |
S15.1.2.3_A7.5.js |
---
info: The parseFloat property has the attribute DontEnum
esid: sec-parsefloat-string
description: Checking use propertyIsEnumerable, for-in
--- |
773 |
S15.1.2.3_A7.6.js |
---
info: The parseFloat property has not prototype property
esid: sec-parsefloat-string
description: Checking parseFloat.prototype
--- |
453 |
S15.1.2.3_A7.7.js |
---
info: The parseFloat property can't be used as constructor
esid: sec-parsefloat-string
description: >
If property does not implement the internal [[Construct]] method,
throw a TypeError exception
--- |
657 |
shell.js |
---
description: |
Collection of functions used to assert the correctness of various encoding operations.
defines: [decimalToHexString, decimalToPercentHexString]
--- |
1269 |
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]
--- |
629 |
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]
--- |
631 |
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]
--- |
629 |
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]
--- |
631 |
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]
--- |
931 |
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]
--- |
588 |
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]
--- |
990 |
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]
--- |
572 |
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]
--- |
573 |
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]
--- |
566 |
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]
--- |
567 |
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]
--- |
1000 |
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]
--- |
478 |
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]
--- |
475 |
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]
--- |
1062 |