(path)
| 20 | }); |
| 21 | |
| 22 | function loadAddon(path) { |
| 23 | // require() treats .so/.dylib/.dll as JavaScript. dlopen loads Node-API |
| 24 | // exports directly while preserving the platform library's installed name. |
| 25 | const addon = { exports: {} }; |
| 26 | process.dlopen(addon, path); |
| 27 | return addon.exports; |
| 28 | } |
| 29 | |
| 30 | export function packageRuntime( |
| 31 | { target, buildDir, outputDir, version, revision }, |
nothing calls this directly
no outgoing calls
no test coverage detected