Line | Branch | Exec | Source |
---|---|---|---|
1 | #include <export.h> | ||
2 | #include <utils.h> | ||
3 | |||
4 | /** | ||
5 | * Module initialization callback | ||
6 | */ | ||
7 | static napi_value | ||
8 | 1 | init(napi_env env, napi_value exports) { | |
9 | 2 | napi_property_descriptor props[] = { | |
10 | 1 | btree_export(env), | |
11 | 1 | glib_version_export(env) | |
12 | }; | ||
13 | |||
14 |
1/6✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
|
1 | NAPI_CALL(env, false, |
15 | napi_define_properties( | ||
16 | env, | ||
17 | exports, | ||
18 | (sizeof(props) / sizeof(napi_property_descriptor)), | ||
19 | props | ||
20 | ) | ||
21 | ); | ||
22 | |||
23 | 1 | return exports; | |
24 | } | ||
25 | |||
26 | 1 | NAPI_MODULE(NODE_GYP_MODULE_NAME, init); | |
27 |