- if (numArgs > 2) throw new JSExn("too many arguments to primitive method");
- Object arg1 = numArgs >= 2 ? stack.pop() : null;
- Object arg0 = numArgs >= 1 ? stack.pop() : null;
- ret = callMethodOnPrimitive(object, method, arg0, arg1, numArgs);
+ ret = callMethodOnPrimitive(object, method, a0, a1, a2, null, numArgs);