Changeset 15483 in webkit for trunk/JavaScriptCore/API/JSNode.c


Ignore:
Timestamp:
Jul 17, 2006, 2:06:57 AM (19 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSNode.c

    r15482 r15483  
    182182    static JSObjectRef prototype;
    183183    if (!prototype) {
    184         prototype = JSObjectMake(context, JSNodePrototype_class(context), NULL);
     184        prototype = JSObjectMake(context, JSNodePrototype_class(context), NULL, NULL);
    185185        JSValueProtect(context, prototype);
    186186    }
     
    192192    Node_ref(node);
    193193
    194     JSObjectRef jsNode = JSObjectMake(context, JSNode_class(context), JSNode_prototype(context));
     194    JSObjectRef jsNode = JSObjectMake(context, JSNode_class(context), JSNode_prototype(context), NULL);
    195195    JSObjectSetPrivate(jsNode, node);
    196196    return jsNode;
Note: See TracChangeset for help on using the changeset viewer.