Changeset 11903 in webkit for trunk/JavaScriptCore/kjs/property_map.cpp
- Timestamp:
- Jan 6, 2006, 12:32:20 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/property_map.cpp
r11773 r11903 289 289 #endif 290 290 291 void PropertyMap::put(const Identifier &name, JSValue *value, int attributes )291 void PropertyMap::put(const Identifier &name, JSValue *value, int attributes, bool roCheck) 292 292 { 293 293 assert(!name.isNull()); … … 308 308 UString::Rep *key = _singleEntry.key; 309 309 if (key) { 310 if (rep == key ) {310 if (rep == key && !(roCheck && (_singleEntry.attributes & ReadOnly))) { 311 311 _singleEntry.value = value; 312 312 return; … … 339 339 while (UString::Rep *key = entries[i].key) { 340 340 if (rep == key) { 341 if (roCheck && (_table->entries[i].attributes & ReadOnly)) 342 return; 341 343 // Put a new value in an existing hash table entry. 342 344 entries[i].value = value;
Note:
See TracChangeset
for help on using the changeset viewer.