Changeset 28468 in webkit for trunk/JavaScriptCore/kjs/function_object.cpp
- Timestamp:
- Dec 5, 2007, 6:31:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r27842 r28468 104 104 JSObject *applyThis; 105 105 if (thisArg->isUndefinedOrNull()) 106 applyThis = exec->dynamic Interpreter()->globalObject();106 applyThis = exec->dynamicGlobalObject(); 107 107 else 108 108 applyThis = thisArg->toObject(exec); … … 134 134 JSObject *callThis; 135 135 if (thisArg->isUndefinedOrNull()) 136 callThis = exec->dynamic Interpreter()->globalObject();136 callThis = exec->dynamicGlobalObject(); 137 137 else 138 138 callThis = thisArg->toObject(exec); … … 192 192 193 193 // notify debugger that source has been parsed 194 Debugger *dbg = exec->dynamic Interpreter()->debugger();194 Debugger *dbg = exec->dynamicGlobalObject()->debugger(); 195 195 if (dbg) { 196 196 // send empty sourceURL to indicate constructed code … … 209 209 210 210 ScopeChain scopeChain; 211 scopeChain.push(exec->lexical Interpreter()->globalObject());211 scopeChain.push(exec->lexicalGlobalObject()); 212 212 213 213 FunctionImp* fimp = new FunctionImp(exec, functionName, functionBody.get(), scopeChain); … … 246 246 List consArgs; 247 247 248 JSObject* objCons = exec->lexical Interpreter()->builtinObject();248 JSObject* objCons = exec->lexicalGlobalObject()->objectConstructor(); 249 249 JSObject* prototype = objCons->construct(exec,List::empty()); 250 250 prototype->put(exec, exec->propertyNames().constructor, fimp, DontEnum|DontDelete|ReadOnly);
Note:
See TracChangeset
for help on using the changeset viewer.