Subj : SpiderMonkey newbie question To : netscape.public.mozilla.jseng From : Andy Madigan Date : Tue Sep 28 2004 02:16 pm I'm trying to figure out how to create JavaScript "classes", in the apidoc for JS_InitClass (http://www.mozilla.org/js/spidermonkey/apidoc/gen/api-JS_InitClass.html) it seems to say that if you don't pass a prototype object, the class won't init. What I need is to be able to create a class where the prototype is "new Object". Is there a shortcut for this, or should I try to evaluate the script "new Object" and just get a prototype that way. (Note: I know rhino, but SpiderMonkey makes very little sense to me, since I'm used to C++, not C). ===== .