Changeset 20569 in webkit for trunk/JavaScriptCore/kjs/array_object.cpp
- Timestamp:
- Mar 28, 2007, 11:20:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.cpp
r20310 r20569 102 102 if (index < storageLength) { 103 103 JSValue *v = storage[index]; 104 if (!v || v->isUndefined())104 if (!v) 105 105 return false; 106 106 slot.setValueSlot(this, &storage[index]); … … 121 121 if (index < storageLength) { 122 122 JSValue *v = storage[index]; 123 if (!v || v->isUndefined())123 if (!v) 124 124 return false; 125 125 slot.setValueSlot(this, &storage[index]); … … 790 790 if (id == Filter) 791 791 resultArray = static_cast<JSObject *>(exec->lexicalInterpreter()->builtinArray()->construct(exec, List::empty())); 792 else 793 { 792 else { 794 793 List args; 795 794 args.append(jsNumber(length)); … … 840 839 result = jsBoolean(id == Every); 841 840 else 842 result = thisObj;841 result = jsUndefined(); 843 842 844 843 for (unsigned k = 0; k < length && !exec->hadException(); ++k) { … … 887 886 JSValue* e = getProperty(exec, thisObj, index); 888 887 if (!e) 889 e = jsUndefined();888 continue; 890 889 if (strictEqual(exec, searchElement, e)) 891 890 return jsNumber(index); … … 913 912 JSValue* e = getProperty(exec, thisObj, index); 914 913 if (!e) 915 e = jsUndefined();914 continue; 916 915 if (strictEqual(exec, searchElement, e)) 917 916 return jsNumber(index);
Note:
See TracChangeset
for help on using the changeset viewer.