Changeset 27484 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Nov 6, 2007, 11:49:39 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r27483 r27484 1708 1708 JSType t1 = v1->type(); 1709 1709 JSType t2 = v2->type(); 1710 const unsigned bothTypes = (t1 << 16) | t2;1710 const unsigned bothTypes = (t1 << 3) | t2; 1711 1711 1712 if (bothTypes == ((NumberType << 16) | NumberType))1712 if (bothTypes == ((NumberType << 3) | NumberType)) 1713 1713 return jsNumber(v1->toNumber(exec) + v2->toNumber(exec)); 1714 else if (bothTypes == ((StringType << 16) | StringType)) {1714 else if (bothTypes == ((StringType << 3) | StringType)) { 1715 1715 UString value = static_cast<StringImp*>(v1)->value() + static_cast<StringImp*>(v2)->value(); 1716 1716 if (value.isNull())
Note:
See TracChangeset
for help on using the changeset viewer.