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


Ignore:
Timestamp:
Mar 21, 2008, 7:36:34 PM (17 years ago)
Author:
[email protected]
Message:

Global properties that use LocalStorage are not correctly listed as enumerable.

Reviewed by Geoff Garen

The problem was caused by JSObject::getPropertyAttributes not being aware
of the JSVariableObject SymbolTable. The fix is to make getPropertyAttributes
virtual and override in JSVariableObject. This does not produce any performance
regression.

File:
1 edited

Legend:

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

    r31114 r31225  
    404404    virtual JSObject *toObject(ExecState *exec) const;
    405405   
    406     bool getPropertyAttributes(const Identifier& propertyName, unsigned& attributes) const;
     406    virtual bool getPropertyAttributes(const Identifier& propertyName, unsigned& attributes) const;
    407407   
    408408    // WebCore uses this to make document.all and style.filter undetectable
Note: See TracChangeset for help on using the changeset viewer.