1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Node-API symbols come from the host, not from a library.
//!
//! An addon is a shared library that Node `dlopen`s, and the `napi_*` functions
//! are exported by the `node` executable itself. So there is nothing to link
//! against at build time, and the linker has to be told that the undefined
//! symbols are deliberate — otherwise it refuses, which is what it should
//! normally do.
//!
//! Every runtime that loads the addon resolves them: Node, Deno and Bun all
//! export the same ABI.