use new node options parser

This commit is contained in:
Jeremy Apthorp 2018-09-17 17:48:10 -07:00 committed by Aleksei Kuzmin
parent 9aaedc394e
commit 6e037f5e71
3 changed files with 30 additions and 12 deletions

View file

@ -217,7 +217,11 @@ void NodeBindings::Initialize() {
// Init node.
// (we assume node::Init would not modify the parameters under embedded mode).
// NOTE: If you change this line, please ping @codebytere or @MarshallOfSound
node::Init(nullptr, nullptr, nullptr, nullptr);
int argc = 0;
int exec_argc = 0;
const char** argv = nullptr;
const char** exec_argv = nullptr;
node::Init(&argc, argv, &exec_argc, &exec_argv);
#if defined(OS_WIN)
// uv_init overrides error mode to suppress the default crash dialog, bring

View file

@ -35,8 +35,8 @@
#include "env.h"
#include "node.h"
#include "node_buffer.h"
#include "node_debug_options.h"
#include "node_internals.h"
#include "node_options.h"
#include "node_platform.h"
namespace node {