summaryrefslogtreecommitdiffstats
path: root/JavaScriptGlue/JSObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptGlue/JSObject.cpp')
-rw-r--r--JavaScriptGlue/JSObject.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/JavaScriptGlue/JSObject.cpp b/JavaScriptGlue/JSObject.cpp
index 1d50bce..d7305cb 100644
--- a/JavaScriptGlue/JSObject.cpp
+++ b/JavaScriptGlue/JSObject.cpp
@@ -73,10 +73,10 @@ void JSUserObject::SetProperty(CFStringRef propertyName, JSUserObject* value)
}
-static JSValue JSC_HOST_CALL nativeCallFunction(ExecState* exec, JSObject* functionObject, JSValue thisValue, const ArgList& args);
-static JSValue nativeCallFunction(ExecState* exec, JSObject* functionObject, JSValue thisValue, const ArgList& args)
+static EncodedJSValue JSC_HOST_CALL nativeCallFunction(ExecState* exec);
+static EncodedJSValue nativeCallFunction(ExecState* exec)
{
- return static_cast<UserObjectImp*>(functionObject)->callAsFunction(exec, asObject(thisValue), args);
+ return JSValue::encode(static_cast<UserObjectImp*>(exec->callee())->callAsFunction(exec));
}
CallType JSUserObject::getCallData(CallData& callData)