Changeset 27086 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Oct 25, 2007, 8:58:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r26912 r27086 56 56 // ------------------------------ StringImp ------------------------------------ 57 57 58 JSValue *StringImp::toPrimitive(ExecState *, JSType) const 59 { 60 return const_cast<StringImp *>(this); 58 JSValue* StringImp::toPrimitive(ExecState*, JSType) const 59 { 60 return const_cast<StringImp*>(this); 61 } 62 63 bool StringImp::getPrimitiveNumber(ExecState*, double& number) const 64 { 65 number = val.toDouble(); 66 return false; 61 67 } 62 68 … … 83 89 // ------------------------------ NumberImp ------------------------------------ 84 90 85 JSValue *NumberImp::toPrimitive(ExecState *, JSType) const 86 { 87 return const_cast<NumberImp *>(this); 91 JSValue* NumberImp::toPrimitive(ExecState*, JSType) const 92 { 93 return const_cast<NumberImp*>(this); 94 } 95 96 bool NumberImp::getPrimitiveNumber(ExecState*, double& number) const 97 { 98 number = val; 99 return true; 88 100 } 89 101 … … 145 157 } 146 158 147 JSValue *GetterSetterImp::toPrimitive(ExecState*, JSType) const159 JSValue* GetterSetterImp::toPrimitive(ExecState*, JSType) const 148 160 { 149 161 ASSERT(false); 150 162 return jsNull(); 163 } 164 165 bool GetterSetterImp::getPrimitiveNumber(ExecState*, double& number) const 166 { 167 ASSERT(false); 168 number = 0; 169 return true; 151 170 } 152 171
Note:
See TracChangeset
for help on using the changeset viewer.