Subj : Re: difference between obj and parent_proto in Js_Init_class To : brann From : Brendan Eich Date : Fri May 07 2004 12:31 pm brann wrote: > hi > I'm in trouble for understanding the difference between those 2 parameters > of the js_init_class function > obj JSObject * Pointer to the object to use for initializing the class. > parent_proto JSObject * Pointer to a prototype object for the class. As usual, obj is the scope chain head. In this case, it should be a global object, because that's where clasp->name is bound to a function object for the JSNative constructor (or if constructor is null, for the new class's prototype). /be .