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

Function openLibrary

test/parallel/test-permission-drop-ffi.js:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const assert = require('assert');
11
12function openLibrary() {
13 const { lib } = ffi.dlopen(libraryPath, {
14 add_i32: fixtureSymbols.add_i32,
15 allocate_memory: fixtureSymbols.allocate_memory,
16 deallocate_memory: fixtureSymbols.deallocate_memory,
17 });
18 lib.close();
19}
20
21
22{

Callers 1

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected