Changeset 36304 in webkit for trunk/JavaScriptCore/kjs/JSObject.cpp
- Timestamp:
- Sep 9, 2008, 4:42:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSObject.cpp
r36285 r36304 137 137 138 138 unsigned attributes; 139 if ( m_structureID->propertyMap().get(propertyName, attributes, m_propertyStorage) && attributes & ReadOnly)139 if ((m_structureID->propertyMap().getOffset(propertyName, attributes) != WTF::notFound) && attributes & ReadOnly) 140 140 return; 141 141 142 142 for (JSObject* obj = this; ; obj = static_cast<JSObject*>(prototype)) { 143 if (JSValue* gs = obj-> structureID()->propertyMap().get(propertyName, obj->propertyStorage())) {143 if (JSValue* gs = obj->getDirect(propertyName)) { 144 144 if (gs->isGetterSetter()) { 145 145 JSObject* setterFunc = static_cast<GetterSetter*>(gs)->setter(); … … 203 203 { 204 204 unsigned attributes; 205 JSValue* v = m_structureID->propertyMap().get(propertyName, attributes, m_propertyStorage); 206 if (v) { 205 if (m_structureID->propertyMap().getOffset(propertyName, attributes) != WTF::notFound) { 207 206 if ((attributes & DontDelete)) 208 207 return false; … … 422 421 bool JSObject::getPropertyAttributes(ExecState* exec, const Identifier& propertyName, unsigned& attributes) const 423 422 { 424 if (m_structureID->propertyMap().get (propertyName, attributes, m_propertyStorage))423 if (m_structureID->propertyMap().getOffset(propertyName, attributes) != WTF::notFound) 425 424 return true; 426 425
Note:
See TracChangeset
for help on using the changeset viewer.