$OpenBSD: patch-Source_JavaScriptCore_interpreter_Interpreter_cpp,v 1.2 2011/10/13 06:52:49 jasper Exp $

Fix for mips64el, -1 was wrongly removed in
http://trac.webkit.org/changeset/60392/trunk/JavaScriptCore/interpreter/Interpreter.cpp
https://bugs.webkit.org/show_bug.cgi?id=55957

--- Source/JavaScriptCore/interpreter/Interpreter.cpp.orig	Fri Oct  7 09:48:20 2011
+++ Source/JavaScriptCore/interpreter/Interpreter.cpp	Fri Oct  7 09:49:52 2011
@@ -4273,7 +4273,7 @@ skip_id_custom_self:
         JSValue arguments = callFrame->r(argsOffset).jsValue();
         uint32_t argCount = 0;
         if (!arguments) {
-            argCount = (uint32_t)(callFrame->argumentCount());
+            argCount = (uint32_t)(callFrame->argumentCount() - 1);
             if (argCount > Arguments::MaxArguments) {
                 exceptionValue = createStackOverflowError(callFrame);
                 goto vm_throw;
