Changeset 37859 in webkit for trunk/JavaScriptCore/kjs/JSFunction.cpp
- Timestamp:
- Oct 24, 2008, 1:44:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSFunction.cpp
r37845 r37859 103 103 bool JSFunction::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 104 104 { 105 if (propertyName == exec->propertyNames().prototype) { 106 JSValue** location = getDirectLocation(propertyName); 107 108 if (!location) { 109 JSObject* prototype = new (exec) JSObject(m_scopeChain.globalObject()->emptyObjectStructure()); 110 prototype->putDirect(exec->propertyNames().constructor, this, DontEnum); 111 putDirect(exec->propertyNames().prototype, prototype, DontDelete); 112 location = getDirectLocation(propertyName); 113 } 114 115 slot.setValueSlot(this, location, offsetForLocation(location)); 116 } 117 105 118 if (propertyName == exec->propertyNames().arguments) { 106 119 slot.setCustom(this, argumentsGetter);
Note:
See TracChangeset
for help on using the changeset viewer.