Skip to content

parse_int function does not match ECMAscript specification #52

@Wingedevil

Description

@Wingedevil
parse_int("1",36); // returns 1 intended behavior
parse_int("1",46);
parse_int("uu1",36);

"Error: parseInt expects two arguments a string s, and a positive integer i" is thrown while both arguments are as stated in the error. In addition, according to ECMAScript specification, a NaN is returned for these two cases.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions