Changeset 47622 in webkit for trunk/JavaScriptCore/runtime/JSCell.h
- Timestamp:
- Aug 20, 2009, 10:41:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSCell.h
r47288 r47622 316 316 } 317 317 318 inline UString JSValue::toString(ExecState* exec) const319 {320 if (isCell())321 return asCell()->toString(exec);322 if (isInt32())323 return UString::from(asInt32());324 if (isDouble())325 return asDouble() == 0.0 ? "0" : UString::from(asDouble());326 if (isTrue())327 return "true";328 if (isFalse())329 return "false";330 if (isNull())331 return "null";332 ASSERT(isUndefined());333 return "undefined";334 }335 336 318 inline bool JSValue::needsThisConversion() const 337 319 {
Note:
See TracChangeset
for help on using the changeset viewer.