]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/CallData.cpp
JavaScriptCore-1218.35.tar.gz
[apple/javascriptcore.git] / runtime / CallData.cpp
index 018e2ca34b516be6bc691d31fac9a91f17c707e1..8e1d1948636d638d8fc5d7f8615d2cfccc149dce 100644 (file)
 #include "Executable.h"
 #include "Interpreter.h"
 #include "JSFunction.h"
+#include "Operations.h"
 
 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);
 }