Show
Ignore:
Timestamp:
07/17/06 02:06:57 (2 years ago)
Author:
ggaren
Message:

Reviewed by Maciej.


  • Changed the initialize callback to run from least derived class (parent class) to most derived class. This enables C++ style initialization, and derived class overriding of member data.


  • Added excpetion propopgation to JSObjectMake, to support initialize exceptions, and generally round out our policy of making function signatures as long as possible.
  • API/JSCallbackObject.h: Use ExecState instead of ContextRef, cuz we're in C++ land now.
Files:
1 modified

Legend:

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

    r15468 r15483  
    3737{ 
    3838public: 
    39     JSCallbackObject(JSContextRef, JSClassRef); 
    40     JSCallbackObject(JSContextRef, JSClassRef, JSValue* prototype); 
     39    JSCallbackObject(ExecState*, JSClassRef); 
     40    JSCallbackObject(ExecState*, JSClassRef, JSValue* prototype); 
    4141    virtual ~JSCallbackObject(); 
    4242         
     
    7878    JSCallbackObject(const JSCallbackObject&); 
    7979 
    80     void init(JSContextRef, JSClassRef); 
     80    void init(ExecState*, JSClassRef); 
    8181     
    8282    static JSValue* cachedValueGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot&);