From 00c876dec54f9c515aeed78c75ce61a4e0206d95 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 31 Mar 2016 12:39:37 +0200 Subject: [PATCH] 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 Reviewed-By: James M Snell --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 1cf8e35461..b6af9e53b6 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3327,7 +3327,7 @@ void LoadEnvironment(Environment* env) { global->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "global"), global); Local arg = env->process_object(); - f->Call(Null(env->isolate()), ARRAY_SIZE(&arg), &arg); + f->Call(Null(env->isolate()), 1, &arg); } static void PrintHelp();