mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
chore: remove node patches by using the preload feature (#41080)
This commit is contained in:
@@ -219,6 +219,12 @@ class NodeBindings {
|
||||
base::WeakPtrFactory<NodeBindings> weak_factory_{this};
|
||||
};
|
||||
|
||||
// A thread-safe function responsible for loading preload script which runs for
|
||||
// all node environments (including child processes and workers).
|
||||
void OnNodePreload(node::Environment* env,
|
||||
v8::Local<v8::Value> process,
|
||||
v8::Local<v8::Value> require);
|
||||
|
||||
} // namespace electron
|
||||
|
||||
#endif // ELECTRON_SHELL_COMMON_NODE_BINDINGS_H_
|
||||
|
||||
Reference in New Issue
Block a user