Changeset 37333 in webkit for trunk/JavaScriptCore/kjs/JSString.h
- Timestamp:
- Oct 6, 2008, 10:50:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSString.h
r37285 r37333 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 95 97 private: 96 98 enum VPtrStealingHackType { VPtrStealingHack }; … … 102 104 virtual JSValue* toPrimitive(ExecState*, PreferredPrimitiveType) const; 103 105 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue*& value); 104 virtual bool toBoolean(ExecState*) const;105 106 virtual double toNumber(ExecState*) const; 106 107 virtual JSObject* toObject(ExecState*) const;
Note:
See TracChangeset
for help on using the changeset viewer.