Changeset 156624 in webkit for trunk/Source/JavaScriptCore/API/JSCallbackObjectFunctions.h
- Timestamp:
- Sep 29, 2013, 8:45:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSCallbackObjectFunctions.h
r156240 r156624 593 593 if (Parent::getOwnPropertySlot(thisObj, exec, propertyName, slot2)) 594 594 return slot2.getValue(exec, propertyName); 595 595 596 596 if (StringImpl* name = propertyName.publicName()) { 597 597 for (JSClassRef jsClass = thisObj->classRef(); jsClass; jsClass = jsClass->parentClass) { … … 599 599 if (StaticFunctionEntry* entry = staticFunctions->get(name)) { 600 600 if (JSObjectCallAsFunctionCallback callAsFunction = entry->callAsFunction) { 601 602 JSObject* o = JSCallbackFunction::create( exec, thisObj->globalObject(), callAsFunction, name);603 thisObj->putDirect( exec->vm(), propertyName, o, entry->attributes);601 VM& vm = exec->vm(); 602 JSObject* o = JSCallbackFunction::create(vm, thisObj->globalObject(), callAsFunction, name); 603 thisObj->putDirect(vm, propertyName, o, entry->attributes); 604 604 return o; 605 605 }
Note:
See TracChangeset
for help on using the changeset viewer.