Changeset 11795 in webkit
- Timestamp:
- Dec 29, 2005 12:18:40 AM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r11785 r11795 1 2005-12-28 Anders Carlsson <andersca@mac.com> 2 3 Reviewed by Maciej. 4 5 - The JSC part of http://bugzilla.opendarwin.org/show_bug.cgi?id=6268 6 Add undetectable document.all 7 8 * kjs/operations.cpp: 9 (KJS::equal): 10 When comparing an object with null or undefined, call toPrimitive with 11 NullType as the preferred type. 12 1 13 2005-12-27 Anders Carlsson <andersca@mac.com> 2 14 -
trunk/JavaScriptCore/kjs/operations.cpp
r11527 r11795 130 130 if ((t1 == StringType || t1 == NumberType) && t2 >= ObjectType) 131 131 return equal(exec, v1, v2->toPrimitive(exec)); 132 if (t1 == NullType && t2 >= ObjectType) 133 return equal(exec, v1, v2->toPrimitive(exec, NullType)); 132 134 if (t1 >= ObjectType && (t2 == StringType || t2 == NumberType)) 133 135 return equal(exec, v1->toPrimitive(exec), v2); 136 if (t1 >= ObjectType && t2 == NullType) 137 return equal(exec, v1->toPrimitive(exec, NullType), v2); 134 138 if (t1 != t2) 135 139 return false;
Note: See TracChangeset
for help on using the changeset viewer.