Changeset 9842 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Jul 19, 2005, 7:23:57 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.cpp
r9768 r9842 450 450 switch (id) { 451 451 case ToLocaleString: 452 // TODO - see 15.4.4.3453 // fall through454 452 case ToString: 455 453 … … 461 459 462 460 // fall through 463 464 461 case Join: { 465 462 UString separator = ","; … … 471 468 if (k >= 1) 472 469 str += separator; 473 Value element = thisObj.get(exec,k); 474 if (element.type() != UndefinedType && element.type() != NullType) 475 str += element.toString(exec); 470 471 Value element = thisObj.get(exec, k); 472 if (element.type() == UndefinedType || element.type() == NullType) 473 continue; 474 475 Object o = element.toObject(exec); 476 Object conversionFunction; 477 if (id == ToLocaleString) { 478 conversionFunction = Object::dynamicCast(o.get(exec, toLocaleStringPropertyName)); 479 } else { 480 conversionFunction = Object::dynamicCast(o.get(exec, toStringPropertyName)); 481 } 482 str += conversionFunction.call(exec, o, List()).toString(exec); 483 476 484 if ( exec->hadException() ) 477 485 break; 478 486 } 479 487 result = String(str);
Note:
See TracChangeset
for help on using the changeset viewer.