Changeset 29067 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Jan 1, 2008, 11:35:37 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r28907 r29067 71 71 JSValue* FunctionImp::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) 72 72 { 73 ExecState newExec(exec->dynamicGlobalObject(), thisObj, body.get(), FunctionCode, exec, exec->dynamicGlobalObject()->currentExec(), this, &args);73 ExecState newExec(exec->dynamicGlobalObject(), thisObj, body.get(), exec, this, args); 74 74 JSValue* result = body->execute(&newExec); 75 75 if (newExec.completionType() == Throw) { … … 698 698 // enter a new execution context 699 699 JSGlobalObject* globalObject = switchGlobal ? static_cast<JSGlobalObject*>(thisObj) : exec->dynamicGlobalObject(); 700 JSObject* thisVal = static_cast<JSObject*>(exec->thisValue()); 701 ExecState newExec(globalObject, thisVal, evalNode.get(), EvalCode, exec, globalObject->currentExec()); 700 ExecState newExec(globalObject, evalNode.get(), exec); 702 701 703 702 if (switchGlobal) {
Note:
See TracChangeset
for help on using the changeset viewer.