Ignore:
Timestamp:
Sep 19, 2011, 2:28:06 PM (14 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r95466.
http://trac.webkit.org/changeset/95466
https://bugs.webkit.org/show_bug.cgi?id=68389

Incorrect version of the patch. (Requested by mhahnenberg on
#webkit).

Patch by Sheriff Bot <[email protected]> on 2011-09-19

  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
  • runtime/JSCell.cpp:

(JSC::JSCell::toPrimitive):

  • runtime/JSCell.h:

(JSC::JSCell::JSValue::toPrimitive):

  • runtime/JSNotAnObject.cpp:

(JSC::JSNotAnObject::toPrimitive):

  • runtime/JSNotAnObject.h:
  • runtime/JSObject.h:
  • runtime/JSString.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSString.h

    r95466 r95475  
    427427        unsigned length() { return m_length; }
    428428
    429         JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;
    430429        bool getStringPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
    431430        bool getStringPropertySlot(ExecState*, unsigned propertyName, PropertySlot&);
     
    494493        }
    495494
     495        virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;
    496496        virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue& value);
    497497        virtual bool toBoolean(ExecState*) const;
     
    682682
    683683    // --- JSValue inlines ----------------------------
    684 
    685     inline JSValue JSValue::toPrimitive(ExecState* exec, PreferredPrimitiveType preferredType) const
    686     {
    687         if (!isCell())
    688             return asValue();
    689         return asCell()->toPrimitive(exec, preferredType);
    690     }
    691684
    692685    inline UString JSValue::toString(ExecState* exec) const
Note: See TracChangeset for help on using the changeset viewer.