Changeset 11923 in webkit for trunk/JavaScriptCore/kjs/object.h


Ignore:
Timestamp:
Jan 7, 2006, 2:32:25 AM (19 years ago)
Author:
andersca
Message:

2006-01-07 Anders Carlsson <[email protected]>

Reviewed by Maciej.

  • kjs/object.h: (KJS::JSObject::isEqualToNull): Add new function which returns true if an object should be treated as null when doing comparisons.
  • kjs/operations.cpp: (KJS::equal): Use isEqualToNull.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.h

    r11773 r11923  
    492492    UString toString(ExecState *exec) const;
    493493    JSObject *toObject(ExecState *exec) const;
    494 
     494   
    495495    bool getPropertyAttributes(const Identifier& propertyName, int& attributes) const;
     496   
     497    // Returns whether the object should be treated as null when doing equality comparisons
     498    virtual bool isEqualToNull(ExecState *) const { return false; }
    496499   
    497500    // This get function only looks at the property map.
Note: See TracChangeset for help on using the changeset viewer.