]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/CallData.cpp
JavaScriptCore-1097.3.tar.gz
[apple/javascriptcore.git] / runtime / CallData.cpp
index 018e2ca34b516be6bc691d31fac9a91f17c707e1..ff71fa0cbb6d52211195b084887e3d3453956757 100644 (file)
@@ -35,6 +35,7 @@ namespace JSC {
 JSValue call(ExecState* exec, JSValue functionObject, CallType callType, const CallData& callData, JSValue thisValue, const ArgList& args)
 {
     ASSERT(callType == CallTypeJS || callType == CallTypeHost);
+    ASSERT(isValidThisObject(thisValue, exec));
     return exec->interpreter()->executeCall(exec, asObject(functionObject), callType, callData, thisValue, args);
 }