refactor: load electron builtin modules with process._linkedBinding (#17247)

* refactor: load electron builtin modules with process._linkedBinding

NODE_BUILTING_MODULE_CONTEXT_AWARE and process.binding are
removed in https://github.com/nodejs/node/pull/25829. This changes
uses the alternative available without any functionality change.

* chore: roll node
This commit is contained in:
Robo 2019-03-08 23:59:52 +05:30 committed by Jeremy Apthorp
parent e5e6aa207c
commit 5afb7dc715
52 changed files with 58 additions and 52 deletions

View file

@ -107,4 +107,4 @@ void Initialize(v8::Local<v8::Object> exports,
} // namespace
NODE_BUILTIN_MODULE_CONTEXT_AWARE(atom_renderer_ipc, Initialize)
NODE_LINKED_MODULE_CONTEXT_AWARE(atom_renderer_ipc, Initialize)

View file

@ -548,4 +548,4 @@ void Initialize(v8::Local<v8::Object> exports,
} // namespace
NODE_BUILTIN_MODULE_CONTEXT_AWARE(atom_renderer_web_frame, Initialize)
NODE_LINKED_MODULE_CONTEXT_AWARE(atom_renderer_web_frame, Initialize)

View file

@ -68,7 +68,7 @@ v8::Local<v8::Value> GetBinding(v8::Isolate* isolate,
return exports;
}
auto* mod = node::binding::get_builtin_module(module_key.c_str());
auto* mod = node::binding::get_linked_module(module_key.c_str());
if (!mod) {
char errmsg[1024];