Subj : Re: Updated API ref To : Sterling Bates From : Brendan Eich Date : Thu Apr 22 2004 02:43 pm Sterling Bates wrote: > > 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.

Not true. If clasp is null, the Object class is used. That means the prototype, if proto is null, of the new object will be Object.prototype. /be .