Subj : Re: Error handling To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Tue Aug 05 2003 11:21 pm "Braden McDaniel" wrote in message news:pan.2003.08.06.03.24.44.95906@endoframe.com... > > Well, frozen or not, JS_ReportErrorNumber is broken for its intended > purpose: the pattern of usage employed in js.c is not valid. Perhaps its > signature could be changed to > > void JS_ReportErrorNumber(JSContext *cx, JSErrorCallback errorCallback, > void * userRef, JSErrNum errorNumber, ...); Regarding the "...", I would advocate against the use of more variant-parameter functions. There are already several of them, notably all of the JS_*Arguments functions. Other languages may not support this (Delphi/Object Pascal is one of them) and this could be a very crucial API. If it's important to have the "...", then perhaps I can work up a Delphi routine to append (prepend?) arguments to the call stack. I'm not sure exactly how C implements it, but the info is probably out there. Sterling .