Changeset 26535 in webkit for trunk/JavaScriptCore/kjs/array_object.cpp
- Timestamp:
- Oct 12, 2007, 8:38:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.cpp
r26475 r26535 536 536 case Join: { 537 537 static HashSet<JSObject*> visitedElems; 538 static const UString empty("");539 static const UString comma(",");538 static const UString* empty = new UString(""); 539 static const UString* comma = new UString(","); 540 540 bool alreadyVisited = !visitedElems.add(thisObj).second; 541 541 if (alreadyVisited) 542 return jsString( empty);543 UString separator = comma;544 UString str = empty;542 return jsString(*empty); 543 UString separator = *comma; 544 UString str = *empty; 545 545 546 546 if (id == Join && !args[0]->isUndefined())
Note:
See TracChangeset
for help on using the changeset viewer.