2019-07-16 17:23:04 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Thiago de Arruda <tpadilha84@gmail.com>
|
|
|
|
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
|
2020-01-09 18:42:53 +00:00
|
|
|
index 42f3c5b8d00880588f442a4e724e080128c56dfe..cefb6419ebb7f5c5c79927d179eef0a790e234ad 100644
|
2019-07-16 17:23:04 +00:00
|
|
|
--- a/src/node_binding.h
|
|
|
|
+++ b/src/node_binding.h
|
2020-01-09 18:42:53 +00:00
|
|
|
@@ -90,6 +90,8 @@ void GetInternalBinding(const v8::FunctionCallbackInfo<v8::Value>& args);
|
2019-07-16 17:23:04 +00:00
|
|
|
void GetLinkedBinding(const v8::FunctionCallbackInfo<v8::Value>& args);
|
|
|
|
void DLOpen(const v8::FunctionCallbackInfo<v8::Value>& args);
|
|
|
|
|
|
|
|
+NODE_EXTERN node_module* get_linked_module(const char *name);
|
|
|
|
+
|
|
|
|
} // namespace binding
|
|
|
|
|
|
|
|
} // namespace node
|