Changeset 154300 in webkit for trunk/Source/JavaScriptCore/runtime/JSActivation.cpp
- Timestamp:
- Aug 19, 2013, 2:44:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSActivation.cpp
r154253 r154300 179 179 } 180 180 181 bool JSActivation::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, PropertyName propertyName, PropertyDescriptor& descriptor) 182 { 183 JSActivation* thisObject = jsCast<JSActivation*>(object); 184 185 if (propertyName == exec->propertyNames().arguments) { 186 // Defend against the inspector asking for the arguments object after it has been optimized out. 187 if (!thisObject->isTornOff()) { 188 PropertySlot slot(thisObject); 189 JSActivation::getOwnPropertySlot(thisObject, exec, propertyName, slot); 190 descriptor.setDescriptor(slot.getValue(exec, propertyName), DontEnum); 191 return true; 192 } 193 } 194 195 if (thisObject->symbolTableGet(propertyName, descriptor)) 196 return true; 197 198 return Base::getOwnPropertyDescriptor(object, exec, propertyName, descriptor); 199 } 181 GET_OWN_PROPERTY_DESCRIPTOR_IMPL(JSActivation) 200 182 201 183 void JSActivation::put(JSCell* cell, ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot)
Note:
See TracChangeset
for help on using the changeset viewer.