mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Upgrade to node 8.2.0
This commit is contained in:
committed by
Aleksei Kuzmin
parent
9f8f95f4c9
commit
9d2aa6f1c7
@@ -27,9 +27,9 @@ void NodeDebugger::Start() {
|
||||
node::DebugOptions options;
|
||||
for (auto& arg : base::CommandLine::ForCurrentProcess()->argv()) {
|
||||
#if defined(OS_WIN)
|
||||
options.ParseOption(base::UTF16ToUTF8(arg));
|
||||
options.ParseOption("Electron", base::UTF16ToUTF8(arg));
|
||||
#else
|
||||
options.ParseOption(arg);
|
||||
options.ParseOption("Electron", arg);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@ v8::Local<v8::Value> CallMethodWithArgs(v8::Isolate* isolate,
|
||||
v8::MicrotasksScope::kRunMicrotasks);
|
||||
// Use node::MakeCallback to call the callback, and it will also run pending
|
||||
// tasks in Node.js.
|
||||
return node::MakeCallback(isolate, obj, method, args->size(), &args->front());
|
||||
return node::MakeCallback(isolate, obj, method, args->size(), &args->front(),
|
||||
0, 0).ToLocalChecked();
|
||||
}
|
||||
|
||||
} // namespace internal
|
||||
|
||||
Reference in New Issue
Block a user