Changeset 37337 in webkit for trunk/JavaScriptCore/kjs/JSNumberCell.h
- Timestamp:
- Oct 6, 2008, 11:31:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSNumberCell.h
r37333 r37337 53 53 virtual JSValue* toPrimitive(ExecState*, PreferredPrimitiveType) const; 54 54 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue*& value); 55 bool toBoolean() const { return m_value < 0.0 || m_value > 0.0; /* false for NaN */ }55 virtual bool toBoolean(ExecState*) const; 56 56 virtual double toNumber(ExecState*) const; 57 57 virtual UString toString(ExecState*) const;
Note:
See TracChangeset
for help on using the changeset viewer.