Skip to content

Remove unused JS library function: jstoi_s. NFC#23788

Closed
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:jstoi_s
Closed

Remove unused JS library function: jstoi_s. NFC#23788
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:jstoi_s

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 27, 2025

This function was also mis-documented. Its was added #10457 but even then it was unused only add because "good to have for completeness".

However, the behavior of the JS Number function is not as described in the comment. Instead Number("123abc") returns NaN.

On balance I think its better to just remove it.

This function was also mis-documented.  Its was added emscripten-core#10457 but even
then it was unused only add because "good to have for completeness".

However, the behavior of the JS `Number` function is not as described
in the comment.  Instead `Number("123abc")` returns NaN.

On balance I think its better to just remove it.
@sbc100
Copy link
Collaborator Author

sbc100 commented Feb 27, 2025

Closing a favor of larger change #23789

@sbc100 sbc100 closed this Feb 27, 2025
@sbc100 sbc100 deleted the jstoi_s branch February 27, 2025 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant