Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 4c058a6

Browse files
tarrudaalexeykuzmin
authored andcommitted
Expose get_builtin_module function
This is a requirement for electron/electron#8815, which exposes some builtin modules to sandboxed renderers.
1 parent d31e629 commit 4c058a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ struct node_module {
474474
struct node_module* nm_link;
475475
};
476476

477+
NODE_EXTERN node_module* get_builtin_module(const char *name);
477478
extern "C" NODE_EXTERN void node_module_register(void* mod);
478479

479480
#ifdef _WIN32

0 commit comments

Comments
 (0)