Changeset 34821 in webkit for trunk/JavaScriptCore/kjs/BooleanObject.cpp
- Timestamp:
- Jun 26, 2008, 7:53:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/BooleanObject.cpp
r34754 r34821 62 62 JSValue* booleanProtoFuncToString(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList&) 63 63 { 64 if (JSImmediate::isBoolean(thisValue)) 65 return jsString(exec, JSImmediate::toString(thisValue)); 64 if (thisValue == jsBoolean(false)) 65 return jsString(exec, "false"); 66 67 if (thisValue == jsBoolean(true)) 68 return jsString(exec, "true"); 66 69 67 70 if (!thisValue->isObject(&BooleanObject::info)) 68 71 return throwError(exec, TypeError); 69 72 70 return jsString(exec, JSImmediate::toString(static_cast<BooleanObject*>(thisValue)->internalValue())); 73 if (static_cast<BooleanObject*>(thisValue)->internalValue() == jsBoolean(false)) 74 return jsString(exec, "false"); 75 76 ASSERT(static_cast<BooleanObject*>(thisValue)->internalValue() == jsBoolean(true)); 77 return jsString(exec, "true"); 71 78 } 72 79
Note:
See TracChangeset
for help on using the changeset viewer.