Subj : Re: Checking JSObject class type To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Mon Jan 26 2004 08:44 am "Brian Genisio" wrote in message news:40152515$1@10.10.0.241... > Hi all, > > What is the best way to tell what class a JSObject is? This is the best > way I have figured out, but it seemes there must be a quicker way... > > strcmp(JS_GetClass(new_obj)->name, classSpec.name) Could you use JS_GetClass(new_obj) == classSpec ? Sterling .