Changeset 29428 in webkit for trunk/JavaScriptCore/kjs/JSVariableObject.h
- Timestamp:
- Jan 11, 2008, 11:19:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSVariableObject.h
r29425 r29428 92 92 size_t index = symbolTable().get(propertyName.ustring().rep()); 93 93 if (index != missingSymbolMarker()) { 94 #ifndef NDEBUG 95 // During initialization, the variable object needs to advertise that it has certain 96 // properties, even if they're not ready for access yet. This check verifies that 97 // no one tries to access such a property. 98 99 // In a release build, we optimize this check away and just return an invalid pointer. 100 // There's no harm in an invalid pointer, since no one dereferences it. 101 if (index >= d->localStorage.size()) { 102 slot.setUngettable(this); 103 return true; 104 } 105 #endif 94 106 slot.setValueSlot(this, &d->localStorage[index].value); 95 107 return true;
Note:
See TracChangeset
for help on using the changeset viewer.