Browse Source

src: fix ARRAY_SIZE() logic error

Bug introduced in commit 21d66d62 ("lib: remove bootstrap global context
indirection").

PR-URL: https://github.com/nodejs/node/pull/5969
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
process-exit-stdio-flushing
Ben Noordhuis 9 years ago
parent
commit
00c876dec5
  1. 2
      src/node.cc

2
src/node.cc

@ -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();

Loading…
Cancel
Save