mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Add getFunctionFromPointer() to create callables from native addresses with explicit signatures. Reuse function preparation without populating named symbol caches. Keep the associated library alive and invalidate pointer callables when it is closed. Add coverage for conversions, vtables, permissions and garbage collection, and document pointer lifetime requirements. Assisted-by: GitHub Copilot Signed-off-by: Damiano Mazzella <damianomazzella@gmail.com> PR-URL: https://github.com/nodejs/node/pull/66458 Fixes: https://github.com/nodejs/node/issues/66272 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>