From 4122cb0b198bad22c8bc033c8ced58716f0309ad Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 23 Feb 2023 16:33:31 -0800 Subject: [PATCH] Update ZigGlobalObject.cpp --- src/bun.js/bindings/ZigGlobalObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bun.js/bindings/ZigGlobalObject.cpp b/src/bun.js/bindings/ZigGlobalObject.cpp index dced9dbdd673d9..3d038955d8005b 100644 --- a/src/bun.js/bindings/ZigGlobalObject.cpp +++ b/src/bun.js/bindings/ZigGlobalObject.cpp @@ -2953,7 +2953,7 @@ static JSC_DEFINE_HOST_FUNCTION(functionSetImmediate, } JSC::JSValue arguments = {}; - size_t argumentCount = callFrame->argumentCount() - 1; + size_t argumentCount = callFrame->argumentCount(); if (argumentCount > 1) { JSC::ObjectInitializationScope initializationScope(globalObject->vm()); JSC::JSArray* argumentsArray = JSC::JSArray::tryCreateUninitializedRestricted(