detect max_script_run_time?

Dat Vong <[email protected]> Mon, 25 Apr 2011 00:05:56 -0700
Newsgroups gmane.comp.mozilla.devel.embedding
Message-ID <[email protected]>
hi,

   does anyone know if there is a way to detect a script was stopped because
of max_script_run_time?   we have gecko 1.80 embedded, and are finding
scripts are stopped because of the max_script_run_time.  we would like to
detect when that happens and log a more informative message.
looking at nsJSEnvironment, besides popping up a message, it does do any
logging or error callback....

thanks,
dat.