MCPcopy Index your code
hub / github.com/nodejs/node / dlopen

Function dlopen

lib/ffi.js:168–183  ·  view source on GitHub ↗
(path, definitions)

Source from the content-addressed store, hash-verified

166}
167
168function dlopen(path, definitions) {
169 checkFFIPermission();
170
171 const lib = new DynamicLibrary(path);
172 try {
173 const functions = definitions === undefined ? ObjectFreeze({ __proto__: null }) : lib.getFunctions(definitions);
174 return {
175 lib,
176 functions,
177 [SymbolDispose]() { lib.close(); },
178 };
179 } catch (error) {
180 lib.close();
181 throw error;
182 }
183}
184
185function dlclose(handle) {
186 checkFFIPermission();

Callers

nothing calls this directly

Calls 2

checkFFIPermissionFunction · 0.85
closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…