Skip to content
This repository was archived by the owner on Jan 4, 2019. It is now read-only.

Commit 8fddeeb

Browse files
committed
DebugOptions.ParseOption() needs argv[0] as first parameter
nodejs/node#12581
1 parent 36d2ddb commit 8fddeeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

atom/common/node_bindings.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ node::Environment* NodeBindings::CreateEnvironment(
203203

204204
node::DebugOptions debug_options;
205205
for (size_t i = 0; i < args.size(); ++i) {
206-
debug_options.ParseOption(args[i]);
206+
debug_options.ParseOption(c_argv[0], args[i]);
207207
}
208208
if (debug_options.inspector_enabled()) {
209209
// always enable the inspector
210-
debug_options.ParseOption("--inspect");
210+
debug_options.ParseOption(c_argv[0], "--inspect");
211211
env->inspector_agent()->Start(
212212
gin::V8Platform::Get(), nullptr, debug_options);
213213
}

0 commit comments

Comments
 (0)