Subj : Re: Updated API ref
To : netscape.public.mozilla.jseng
From : Sterling Bates
Date : Thu Apr 22 2004 10:33 am
Jens Thiele wrote:
> i have a question regerading JS_NewObject:
> the docu does not mention that the clasp may be NULL
> (I use this)
> or will this feature perhaps be removed some time in the fututre?
It does say this, but it's rather obscure. The second paragraph:
Set proto to NULL to force JS to assign a prototype
object for you. In this case, JS_NewObject attempts to assign
the new object the prototype object belonging to clasp, if one
is defined there. Otherwise, it creates an empty object stub for the
prototype.
I could change it to read:
Set proto to NULL to force JS to assign a prototype
object for you. In this case, JS_NewObject attempts to assign
the new object the prototype object belonging to clasp. If
clasp is NULL it creates an empty object stub for the
prototype.
Any comments?
Sterling
.