Changeset 48083 in webkit for trunk/JavaScriptCore/runtime


Ignore:
Timestamp:
Sep 4, 2009, 7:07:32 PM (16 years ago)
Author:
[email protected]
Message:

ToString conversion should use the actual toString function for String objects.

Reviewed by Gavin Barraclough.

Remove incorrect specialisations of toString conversions on StringObject.

Location:
trunk/JavaScriptCore/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/StringObject.cpp

    r47780 r48083  
    9191}
    9292
    93 UString StringObject::toString(ExecState*) const
    94 {
    95     return internalValue()->value();
    96 }
    97 
    98 UString StringObject::toThisString(ExecState*) const
    99 {
    100     return internalValue()->value();
    101 }
    102 
    103 JSString* StringObject::toThisJSString(ExecState*)
    104 {
    105     return internalValue();
    106 }
    107 
    10893} // namespace JSC
  • trunk/JavaScriptCore/runtime/StringObject.h

    r47780 r48083  
    5454    protected:
    5555        StringObject(PassRefPtr<Structure>, JSString*);
    56 
    57     private:
    58         virtual UString toString(ExecState*) const;
    59         virtual UString toThisString(ExecState*) const;
    60         virtual JSString* toThisJSString(ExecState*);
    6156  };
    6257
Note: See TracChangeset for help on using the changeset viewer.