Subj : Re: Newbie Quesiton? How to retrieve error information. To : netscape.public.mozilla.jseng From : Jens Thiele Date : Wed Apr 07 2004 08:30 am Jia PU wrote: > When I run some scripts, if there's error in the scripts, I only know the > JS_EvaluateScript() return failure. How can I get the error info like we see > in js-shell? > > Register a callback? But How? > > Thanks. > > http://mozilla.org/js/spidermonkey/apidoc/gen/complete.html#JS_SetErrorReporter see also: src/sh/jssh.c:380 src/sh/jssh.c:627 .