Port bellard/quickjs "dtoa library" commits#1142
Merged
saghul merged 6 commits intoquickjs-ng:masterfrom Sep 25, 2025
Merged
Conversation
Contributor
|
I have a fix for the first item in bnoordhuis/quickjs@2c073d7 that you can cherry-pick. |
Contributor
|
Can you run make gen? Looks like we're one bug away! |
57ad718 to
45997cf
Compare
Contributor
Author
|
It turns out that I missed that the bellard/quickjs Something to keep a look out for in the future - any ports from bellard/quickjs that use |
Contributor
Author
|
@bnoordhuis Anything else you're looking for to merge? (CI tests check out, and some local testing checks out fine as well.) EDIT: Rebased on latest master |
added new dtoa library to print and parse float64 numbers. It is necessary to fix corner cases (e.g. radix != 10) and to have correct behavior regardless of the libc implementation. Port of: bellard/quickjs@9936606 bellard/quickjs@dbbca3d Includes alternative fix for bellard/quickjs@638ec8c from 0191aea Update CMakeLists.txt and meson.build Co-Authored-By: Fabrice Bellard <fabrice@bellard.org>
Re-apply quickjs-ng#319, use of js_number()
45997cf to
ec59c5d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port bellard/quickjs dtoa library commits
Port of:
bellard/quickjs@9936606
bellard/quickjs@dbbca3d
Includes alternative fix for bellard/quickjs@638ec8c from 0191aea
Remaining TODO items (would appreciate a look @saghul @bnoordhuis):
Codegen updateThis was actually a side effect of the root cause of the subsequent issue