Changeset 37333 in webkit for trunk/JavaScriptCore/kjs/JSCell.h
- Timestamp:
- Oct 6, 2008, 10:50:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSCell.h
r37285 r37333 73 73 virtual JSValue* toPrimitive(ExecState*, PreferredPrimitiveType) const = 0; 74 74 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue*&) = 0; 75 virtual bool toBoolean(ExecState*) const = 0;75 bool toBoolean() const; 76 76 virtual double toNumber(ExecState*) const = 0; 77 77 virtual UString toString(ExecState*) const = 0; … … 273 273 } 274 274 275 inline bool JSValue::toBoolean( ExecState* exec) const276 { 277 return JSImmediate::isImmediate(this) ? JSImmediate::toBoolean(this) : asCell()->toBoolean( exec);275 inline bool JSValue::toBoolean() const 276 { 277 return JSImmediate::isImmediate(this) ? JSImmediate::toBoolean(this) : asCell()->toBoolean(); 278 278 } 279 279
Note:
See TracChangeset
for help on using the changeset viewer.