X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..4be4e30906bcb8ee30b4d189205cb70bad6707ce:/runtime/CallData.cpp?ds=inline diff --git a/runtime/CallData.cpp b/runtime/CallData.cpp index 018e2ca..8e1d194 100644 --- a/runtime/CallData.cpp +++ b/runtime/CallData.cpp @@ -29,12 +29,14 @@ #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); }