Title: ffi: `'void'` as parameter type triggers internal assertion · Issue #63461 · nodejs/node · GitHub
Open Graph Title: ffi: `'void'` as parameter type triggers internal assertion · Issue #63461 · nodejs/node
X Title: ffi: `'void'` as parameter type triggers internal assertion · Issue #63461 · nodejs/node
Description: Version 26.1.0 Platform Subsystem ffi What steps will reproduce the bug? const lib = new ffi.DynamicLibrary(null); lib.getFunction('f', { parameters: ['void'] }); How often does it reproduce? Is there a required condition? Whenever 'void...
Open Graph Description: Version 26.1.0 Platform Subsystem ffi What steps will reproduce the bug? const lib = new ffi.DynamicLibrary(null); lib.getFunction('f', { parameters: ['void'] }); How often does it reproduce? Is th...
X Description: Version 26.1.0 Platform Subsystem ffi What steps will reproduce the bug? const lib = new ffi.DynamicLibrary(null); lib.getFunction('f', { parameters: ['void'] }); How often does it ...
Opengraph URL: https://github.com/nodejs/node/issues/63461
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ffi: `'void'` as parameter type triggers internal assertion","articleBody":"### Version\n\n26.1.0\n\n### Platform\n\n```text\n\n```\n\n### Subsystem\n\nffi\n\n### What steps will reproduce the bug?\n\n```js\nconst lib = new ffi.DynamicLibrary(null);\nlib.getFunction('f', { parameters: ['void'] });\n```\n\n### How often does it reproduce? Is there a required condition?\n\nWhenever `'void'` is provided in a parameters list.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nUnclear; the native `ToFFIArgument` appears to accept `void` arguments and just pass them as a pointer to 0, although I'm not sure how useful this behaviour is.\n\nEither way, `'void'` should either be accepted in a parameters list, or throw a validation error gracefully.\n\n### What do you see instead?\n\n```\nUncaught:\nError [ERR_INTERNAL_ASSERTION]: FFI: shared-buffer type table missing entry for parameter type \"void\"\nThis is caused by either a bug in Node.js or incorrect usage of Node.js internals.\nPlease open an issue with this stack trace at https://github.com/nodejs/node/issues\n\n at wrapWithSharedBuffer (node:internal/ffi-shared-buffer:252:13)\n at DynamicLibrary.getFunction (node:internal/ffi-shared-buffer:570:10) {\n code: 'ERR_INTERNAL_ASSERTION'\n```\n\n### Additional information\n\ncc: @nodejs/ffi","author":{"url":"https://github.com/Renegade334","@type":"Person","name":"Renegade334"},"datePublished":"2026-05-20T18:34:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/63461/node/issues/63461"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:550d01bf-adab-79f2-69d7-75d65b10c4dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D35C:C4B79:1CF877B:29B6429:6A4CEF22 |
| html-safe-nonce | f466013dbbf18b987ea8f0d897f0e5773f57c6ed369cb64f88d2683026bfd517 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzVDOkM0Qjc5OjFDRjg3N0I6MjlCNjQyOTo2QTRDRUYyMiIsInZpc2l0b3JfaWQiOiI4OTA2NDM3NDM4MjY5NjE1OTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1de19a463cd83b41de5b47180e910cce2333404c941b1a1717ba09c746ed6700 |
| hovercard-subject-tag | issue:4488987102 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/63461/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8586310162b74ccc7aff49a13c9fd7a4ba0ba6cc8af66eb2c3409e81397bf0fe/nodejs/node/issues/63461 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8586310162b74ccc7aff49a13c9fd7a4ba0ba6cc8af66eb2c3409e81397bf0fe/nodejs/node/issues/63461 |
| og:image:alt | Version 26.1.0 Platform Subsystem ffi What steps will reproduce the bug? const lib = new ffi.DynamicLibrary(null); lib.getFunction('f', { parameters: ['void'] }); How often does it reproduce? Is th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Renegade334 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | efec6750a5afcaeaf5dfcf629f404cf98c8371e3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width