Skip to content

Commit

Permalink
Update ZigGlobalObject.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Feb 24, 2023
1 parent e6e4e6b commit 4122cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bun.js/bindings/ZigGlobalObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4122cb0

Please sign in to comment.