Ignore:
Timestamp:
Jul 14, 2006, 9:10:31 PM (19 years ago)
Author:
ggaren
Message:

Reviewed by Maciej.


  • Finalized exception handling in the API.


setProperty can throw because it throws for built-in arrays. getProperty
and deleteProperty can throw because setProperty can throw and we want
to be consistent, and also because they seem like "actions." callAsFunction,
callAsConstructor, and hasInstance can throw, because they caan throw for
all built-ins.


toBoolean can't throw because it's defined that way in the spec.


  • Documented that toBoolean and toObject can't be overridden by custom objects because they're defined that way in the spec.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSCallbackObject.h

    r15385 r15443  
    6363    virtual void getPropertyList(ReferenceList& propertyList, bool recursive);
    6464
    65     virtual bool toBoolean(ExecState*) const;
    6665    virtual double toNumber(ExecState*) const;
    6766    virtual UString toString(ExecState*) const;
Note: See TracChangeset for help on using the changeset viewer.