Changeset 13015 in webkit for trunk/JavaScriptCore/kjs/string_object.cpp
- Timestamp:
- Feb 27, 2006, 1:36:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/string_object.cpp
r12921 r13015 54 54 } 55 55 56 JSValue *StringInstance::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot &slot)57 { 58 return jsNumber(static_cast<StringInstance 59 } 60 61 JSValue *StringInstance::indexGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot &slot)56 JSValue *StringInstance::lengthGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot &slot) 57 { 58 return jsNumber(static_cast<StringInstance*>(slot.slotBase())->internalValue()->toString(exec).size()); 59 } 60 61 JSValue *StringInstance::indexGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot &slot) 62 62 { 63 63 const UChar c = static_cast<StringInstance *>(slot.slotBase())->internalValue()->toString(exec)[slot.index()]; … … 153 153 */ 154 154 // ECMA 15.5.4 155 StringPrototype::StringPrototype(ExecState *exec, 156 ObjectPrototype *objProto) 155 StringPrototype::StringPrototype(ExecState*, ObjectPrototype* objProto) 157 156 : StringInstance(objProto) 158 157 {
Note:
See TracChangeset
for help on using the changeset viewer.