Changeset 2475 in webkit for trunk/JavaScriptCore/kjs/array_object.cpp
- Timestamp:
- Oct 25, 2002, 10:49:57 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.cpp
r2262 r2475 291 291 curObj.inherits(&ArrayInstanceImp::info)) { 292 292 unsigned int k = 0; 293 if (n > 0) 294 length = curObj.get(exec,lengthPropertyName).toUInt32(exec); 293 // Older versions tried to optimize out getting the length of thisObj 294 // by checking for n != 0, but that doesn't work if thisObj is an empty array. 295 length = curObj.get(exec,lengthPropertyName).toUInt32(exec); 295 296 while (k < length) { 296 297 if (curObj.hasProperty(exec,k))
Note:
See TracChangeset
for help on using the changeset viewer.