diff options
Diffstat (limited to 'src/api/environment.cc')
-rw-r--r-- | src/api/environment.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/environment.cc b/src/api/environment.cc index 6cd2c6c34a1..65ee6020933 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -677,6 +677,10 @@ void AddLinkedBinding(Environment* env, const node_module& mod) { prev_head->nm_link = &env->extra_linked_bindings()->back(); } +void AddLinkedBinding(Environment* env, const napi_module& mod) { + AddLinkedBinding(env, napi_module_to_node_module(&mod)); +} + void AddLinkedBinding(Environment* env, const char* name, addon_context_register_func fn, |