use new node options parser
This commit is contained in:
parent
9aaedc394e
commit
6e037f5e71
3 changed files with 30 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue