From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Mon, 6 Mar 2017 10:42:34 -0300 Subject: Expose `get_builtin_module` function This is a requirement for electron/electron#8815, which exposes some builtin modules to sandboxed renderers. (cherry picked from commit 4c058a6cb5331eef1c7f51c042dd074a2d4f9234) diff --git a/src/node_binding.h b/src/node_binding.h index 42f3c5b8d00880588f442a4e724e080128c56dfe..cefb6419ebb7f5c5c79927d179eef0a790e234ad 100644 --- a/src/node_binding.h +++ b/src/node_binding.h @@ -90,6 +90,8 @@ void GetInternalBinding(const v8::FunctionCallbackInfo& args); void GetLinkedBinding(const v8::FunctionCallbackInfo& args); void DLOpen(const v8::FunctionCallbackInfo& args); +NODE_EXTERN node_module* get_linked_module(const char *name); + } // namespace binding } // namespace node