| 15.1.2.2-2-1.js |
---
es5id: 15.1.2.2-2-1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: >
pareseInt - 'S' is the empty string when inputString does not
contain any such characters
--- |
381 |
- |
| name.js |
---
es6id: 18.2.5
esid: sec-parseint-string-radix
description: >
parseInt.name is "parseInt".
info: |
parseInt (string , radix)
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]
--- |
862 |
- |
| S15.1.2.2_A1_T1.js |
---
info: Operator use ToString
es5id: 15.1.2.2_A1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for boolean primitive
--- |
382 |
- |
| S15.1.2.2_A1_T2.js |
---
info: Operator use ToString
es5id: 15.1.2.2_A1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for number primitive
--- |
937 |
- |
| S15.1.2.2_A1_T3.js |
---
info: Operator use ToString
es5id: 15.1.2.2_A1_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for undefined and null
--- |
391 |
- |
| S15.1.2.2_A1_T4.js |
---
info: Operator use ToString
es5id: 15.1.2.2_A1_T4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for Boolean object
--- |
431 |
- |
| S15.1.2.2_A1_T5.js |
---
info: Operator use ToString
es5id: 15.1.2.2_A1_T5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for Number object
--- |
806 |
- |
| S15.1.2.2_A1_T6.js |
---
info: Operator use ToString
es5id: 15.1.2.2_A1_T6
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for String object
--- |
1009 |
- |
| S15.1.2.2_A1_T7.js |
---
info: Operator use ToString
es5id: 15.1.2.2_A1_T7
es6id: 18.2.5
esid: sec-parseint-string-radix
description: If Type(value) is Object, evaluate ToPrimitive(value, String)
--- |
3321 |
- |
| S15.1.2.2_A2_T1.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: TAB (U+0009)"
--- |
1144 |
- |
| S15.1.2.2_A2_T2.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: SP (U+0020)"
--- |
1179 |
- |
| S15.1.2.2_A2_T3.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: NBSB (U+00A0)"
--- |
685 |
- |
| S15.1.2.2_A2_T4.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: FF (U+000C)"
--- |
683 |
- |
| S15.1.2.2_A2_T5.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: VT (U+000B)"
--- |
683 |
- |
| S15.1.2.2_A2_T6.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T6
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: CR (U+000D)"
--- |
683 |
- |
| S15.1.2.2_A2_T7.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T7
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: LF (U+000A)"
--- |
683 |
- |
| S15.1.2.2_A2_T8.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T8
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: LS (U+2028)"
--- |
683 |
- |
| S15.1.2.2_A2_T9.js |
---
info: Operator remove leading StrWhiteSpaceChar
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: PS (U+2029)"
--- |
661 |
- |
| S15.1.2.2_A2_T10.js |
---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T10
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: USP"
--- |
1277 |
- |
| S15.1.2.2_A2_T10_U180E.js |
---
es5id: 15.1.2.2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: >
Leading U+180E is not recognized as whitespace
info: |
18.2.5 parseInt (string , radix)
...
3. Let S be a newly created substring of inputString consisting of the
first code unit that is not a StrWhiteSpaceChar and all code units
following that code unit. (In other words, remove leading white
space.) If inputString does not contain any such code unit, let S
be the empty string
...
13. If S contains a code unit that is not a radix-R digit, let Z be
the substring of S consisting of all code units before the first
such code unit; otherwise, let Z be S.
14. If Z is empty, return NaN.
...
features: [u180e]
--- |
1225 |
- |
| S15.1.2.2_A3.1_T1.js |
---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for boolean primitive
--- |
506 |
- |
| S15.1.2.2_A3.1_T2.js |
---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for string primitive
--- |
752 |
- |
| S15.1.2.2_A3.1_T3.js |
---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for undefined and null
--- |
623 |
- |
| S15.1.2.2_A3.1_T4.js |
---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for Boolean object
--- |
561 |
- |
| S15.1.2.2_A3.1_T5.js |
---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for Number object
--- |
688 |
- |
| S15.1.2.2_A3.1_T6.js |
---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T6
description: Checking for String object
es6id: 18.2.5
esid: sec-parseint-string-radix
--- |
700 |
- |
| S15.1.2.2_A3.1_T7.js |
---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T7
es6id: 18.2.5
esid: sec-parseint-string-radix
description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
--- |
3756 |
- |
| S15.1.2.2_A3.2_T1.js |
---
info: Operator use ToInt32
es5id: 15.1.2.2_A3.2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: If radix is NaN, +0, -0, +Infinity, -Infinity, return radix = +0
--- |
1225 |
- |
| S15.1.2.2_A3.2_T2.js |
---
info: Operator use ToInt32
es5id: 15.1.2.2_A3.2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: ToInt32 use floor
--- |
1114 |
- |
| S15.1.2.2_A3.2_T3.js |
---
info: Operator use ToInt32
es5id: 15.1.2.2_A3.2_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: ToInt32 use modulo
--- |
885 |
- |
| S15.1.2.2_A4.1_T1.js |
---
info: If R = 0 or R = undefined, then R = 10
es5id: 15.1.2.2_A4.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: R = 0
--- |
2208 |
- |
| S15.1.2.2_A4.1_T2.js |
---
info: If R = 0 or R = undefined, then R = 10
es5id: 15.1.2.2_A4.1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: R = undefined
--- |
2099 |
- |
| S15.1.2.2_A4.2_T1.js |
---
info: If R < 2 or R > 36, then return NaN
es5id: 15.1.2.2_A4.2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: R = 1
--- |
833 |
- |
| S15.1.2.2_A4.2_T2.js |
---
info: If R < 2 or R > 36, then return NaN
es5id: 15.1.2.2_A4.2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: R = 37
--- |
846 |
- |
| S15.1.2.2_A5.1_T1.js |
---
info: |
parseInt is no longer allowed to treat a leading zero as indicating
octal. "If radix is undefined or 0, it is assumed to be 10 except
when the number begins with the character pairs 0x or 0X, in which
case a radix of 16 is assumed."
es5id: 15.1.2.2_A5.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Check if parseInt still accepts octal
--- |
609 |
- |
| S15.1.2.2_A5.2_T1.js |
---
info: |
If the length of S is at least 2 and the first two characters of S
are either 0x or 0X, then remove the first two characters from S and let R = 16
es5id: 15.1.2.2_A5.2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: ": 0x"
--- |
3169 |
- |
| S15.1.2.2_A5.2_T2.js |
---
info: |
If the length of S is at least 2 and the first two characters of S
are either 0x or 0X, then remove the first two characters from S and let R = 16
es5id: 15.1.2.2_A5.2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: ": 0X"
--- |
3016 |
- |
| S15.1.2.2_A6.1_T1.js |
---
info: |
If S contains any character that is not a radix-R digit,
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. R in [2, 36]
--- |
632 |
- |
| S15.1.2.2_A6.1_T2.js |
---
info: |
If S contains any character that is not a radix-R digit,
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9, A-Z]
--- |
788 |
- |
| S15.1.2.2_A6.1_T3.js |
---
info: |
If S contains any character that is not a radix-R digit,
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9, a-z]
--- |
788 |
- |
| S15.1.2.2_A6.1_T4.js |
---
info: |
If S contains any character that is not a radix-R digit,
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9, A-Z]
--- |
799 |
- |
| S15.1.2.2_A6.1_T5.js |
---
info: |
If S contains any character that is not a radix-R digit,
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9, a-z]
--- |
799 |
- |
| S15.1.2.2_A6.1_T6.js |
---
info: |
If S contains any character that is not a radix-R digit,
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T6
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9]
--- |
1837 |
- |
| S15.1.2.2_A7.1_T1.js |
---
info: If Z is empty, return NaN
es5id: 15.1.2.2_A7.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. R in [2, 36]
--- |
380 |
- |
| S15.1.2.2_A7.1_T2.js |
---
info: If Z is empty, return NaN
es5id: 15.1.2.2_A7.1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: x is not a radix-R digit
--- |
554 |
- |
| S15.1.2.2_A7.2_T1.js |
---
info: |
Compute the mathematical integer value
that is represented by Z in radix-R notation, using the
letters A-Z and a-z for digits with values 10 through 35.
Compute the number value for Result(16)
es5id: 15.1.2.2_A7.2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Check algorithm
--- |
1337 |
- |
| S15.1.2.2_A7.2_T2.js |
---
info: |
Compute the mathematical integer value
that is represented by Z in radix-R notation, using the
letters A-Z and a-z for digits with values 10 through 35.
Compute the number value for Result(16)
es5id: 15.1.2.2_A7.2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking algorithm for R = 2
--- |
3454 |
- |
| S15.1.2.2_A7.2_T3.js |
---
info: |
Compute the mathematical integer value
that is represented by Z in radix-R notation, using the
letters A-Z and a-z for digits with values 10 through 35.
Compute the number value for Result(16)
es5id: 15.1.2.2_A7.2_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking algorithm for R = 16
--- |
3965 |
- |
| S15.1.2.2_A7.3_T1.js |
---
info: Return sign * Result(17)
es5id: 15.1.2.2_A7.3_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Check algorithm
--- |
1240 |
- |
| S15.1.2.2_A7.3_T2.js |
---
info: Return sign * Result(17)
es5id: 15.1.2.2_A7.3_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking algorithm for R = 2
--- |
3368 |
- |
| S15.1.2.2_A7.3_T3.js |
---
info: Return sign * Result(17)
es5id: 15.1.2.2_A7.3_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking algorithm for R = 10
--- |
3701 |
- |
| S15.1.2.2_A8.js |
---
info: |
parseInt 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.2_A8
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test without eval
includes: [decimalToHexString.js]
--- |
1810 |
- |
| S15.1.2.2_A9.1.js |
---
info: The length property of parseInt has the attribute DontEnum
es5id: 15.1.2.2_A9.1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking use propertyIsEnumerable, for-in
--- |
767 |
- |
| S15.1.2.2_A9.2.js |
---
info: The length property of parseInt does not have the attribute DontDelete
es5id: 15.1.2.2_A9.2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking use hasOwnProperty, delete
--- |
856 |
- |
| S15.1.2.2_A9.3.js |
---
info: The length property of parseInt has the attribute ReadOnly
es5id: 15.1.2.2_A9.3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking if varying the length property fails
includes: [propertyHelper.js]
--- |
606 |
- |
| S15.1.2.2_A9.4.js |
---
info: The length property of parseInt is 2
es5id: 15.1.2.2_A9.4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: parseInt.length === 2
--- |
401 |
- |
| S15.1.2.2_A9.5.js |
---
info: The parseInt property has the attribute DontEnum
es5id: 15.1.2.2_A9.5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking use propertyIsEnumerable, for-in
--- |
747 |
- |
| S15.1.2.2_A9.6.js |
---
info: The parseInt property has not prototype property
es5id: 15.1.2.2_A9.6
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking parseInt.prototype
--- |
444 |
- |
| S15.1.2.2_A9.7.js |
---
info: The parseInt property can't be used as constructor
es5id: 15.1.2.2_A9.7
es6id: 18.2.5
esid: sec-parseint-string-radix
description: >
If property does not implement the internal [[Construct]] method,
throw a TypeError exception
--- |
632 |
- |