Visitar URL original
feat: Node-API (napi) surface for plugin developers (#2004) · NativeScript/android@c26048c · GitHub
Skip to content

Commit c26048c

Browse files
authored
feat: Node-API (napi) surface for plugin developers (#2004)
1 parent fd7b6c6 commit c26048c

36 files changed

Lines changed: 11453 additions & 1 deletion

‎docs/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Runtime documentation
22

3+
- [Node-API](node-api.md) — the standard `napi_*` C ABI for native addons:
4+
building against the prefab package, registering and requiring addons,
5+
threading and finalizer contracts, and the documented divergences from Node
6+
(shared with the iOS runtime).
37
- [Performance API](performance.md) — WHATWG `performance` (hr-time, user
48
timing, performance timeline with `PerformanceObserver`), per-isolate time
59
origins for workers, the native clock hook that future `requestAnimationFrame`

‎docs/node-api.md‎

Lines changed: 204 additions & 0 deletions
Large diffs are not rendered by default.

‎test-app/app/src/main/assets/app/mainpage.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ require('./tests/testPrimordials');
8787
require('./tests/testInspect');
8888
// The ns:/node: builtin modules
8989
require('./tests/testNsUtil');
90+
// Node-API addon surface
91+
require('./tests/NapiTests');
92+
require('./tests/NapiCoverageTests');
9093
require("./tests/testConcurrentAccess");
9194

9295
require("./tests/testESModules.mjs");

0 commit comments

Comments
 (0)