Changeset 37337 in webkit for trunk/JavaScriptCore/kjs/JSString.h
- Timestamp:
- Oct 6, 2008, 11:31:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSString.h
r37333 r37337 93 93 static PassRefPtr<StructureID> createStructureID(JSValue* proto) { return StructureID::create(proto, TypeInfo(StringType, NeedsThisConversion)); } 94 94 95 bool toBoolean() const { return !m_value.isEmpty(); }96 97 95 private: 98 96 enum VPtrStealingHackType { VPtrStealingHack }; … … 104 102 virtual JSValue* toPrimitive(ExecState*, PreferredPrimitiveType) const; 105 103 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue*& value); 104 virtual bool toBoolean(ExecState*) const; 106 105 virtual double toNumber(ExecState*) const; 107 106 virtual JSObject* toObject(ExecState*) const;
Note:
See TracChangeset
for help on using the changeset viewer.