Changeset 34773 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 24, 2008, 1:00:48 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r34770 r34773 1 2008-06-24 Darin Adler <[email protected]> 2 3 Reviewed by Cameron. 4 5 - fix https://bugs.webkit.org/show_bug.cgi?id=19739 6 REGRESSION: fast/js/property-getters-and-setters.html fails 7 8 * kjs/JSObject.cpp: 9 (KJS::JSObject::put): Remove an untested optimization I checked in by accident. 10 The two loops up the prototype chain both need to start from this; instead the 11 second loop was starting where the first loop left off. 12 1 13 2008-06-24 Steve Falkenburg <[email protected]> 2 14 -
trunk/JavaScriptCore/kjs/JSObject.cpp
r34754 r34773 114 114 115 115 // Check if there are any setters or getters in the prototype chain 116 JSObject* obj;117 116 JSValue* prototype; 118 for ( obj = this; !obj->_prop.hasGetterSetterProperties(); obj = static_cast<JSObject*>(prototype)) {117 for (JSObject* obj = this; !obj->_prop.hasGetterSetterProperties(); obj = static_cast<JSObject*>(prototype)) { 119 118 prototype = obj->_proto; 120 119 if (prototype == jsNull()) { … … 128 127 return; 129 128 130 for ( ; ; obj = static_cast<JSObject*>(prototype)) {129 for (JSObject* obj = this; ; obj = static_cast<JSObject*>(prototype)) { 131 130 if (JSValue* gs = obj->_prop.get(propertyName, attributes)) { 132 131 if (attributes & IsGetterSetter) {
Note:
See TracChangeset
for help on using the changeset viewer.