ffi: fix FLOAT_32 and FLOAT_64 type constants#62892
Open
watilde wants to merge 1 commit intonodejs:mainfrom
Open
ffi: fix FLOAT_32 and FLOAT_64 type constants#62892watilde wants to merge 1 commit intonodejs:mainfrom
watilde wants to merge 1 commit intonodejs:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #62892 +/- ##
==========================================
+ Coverage 89.61% 89.64% +0.02%
==========================================
Files 706 706
Lines 219203 219221 +18
Branches 41995 42016 +21
==========================================
+ Hits 196445 196517 +72
+ Misses 14663 14619 -44
+ Partials 8095 8085 -10
🚀 New features to boost your workflow:
|
Member
Author
|
rebase and make the commit Verified. |
Contributor
|
Hi! Can you please update this? |
Member
Author
|
@ShogunPanda Good point, I've udpated. Thank you! |
Contributor
|
Looks fine to me. Fix linting and we're should be good to go. |
Member
Author
|
Should be done now. Thank you! |
addaleax
approved these changes
Apr 24, 2026
Collaborator
bengl
approved these changes
Apr 24, 2026
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.
Test code
Before
$ ./node --experimental-ffi test.js node:ffi:75 throw error; ^ TypeError: Unsupported FFI type: float32 at Object.dlopen (node:ffi:71:91) at Object.<anonymous> (/home/moku/Developments/watilde/node/test.js:3:27) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { code: 'ERR_INVALID_ARG_VALUE' } Node.js v26.0.0-preAfter