Skip to content

Commit

Permalink
src: fix ARRAY_SIZE() logic error
Browse files Browse the repository at this point in the history
Bug introduced in commit 21d66d6 ("lib: remove bootstrap global context
indirection").

PR-URL: #5969
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
bnoordhuis committed Apr 5, 2016
1 parent d416a59 commit 00c876d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3327,7 +3327,7 @@ void LoadEnvironment(Environment* env) {
global->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "global"), global);

Local<Value> arg = env->process_object();
f->Call(Null(env->isolate()), ARRAY_SIZE(&arg), &arg);
f->Call(Null(env->isolate()), 1, &arg);
}

static void PrintHelp();
Expand Down

0 comments on commit 00c876d

Please sign in to comment.