Subj : RE: Rhino - EcmaError not showing line-number (only within small- To : mozilla-jseng@mozilla.org From : Merten.Schumann@asg.com (Merten Schumann) Date : Tue Aug 26 2003 09:27 am This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C36BAB.DB43F730 Content-Type: text/plain; charset="ISO-8859-1" Hello, I've got a question in the same area: is it possible for exceptions which get wrapped in a JavaScriptException to find out their script line number/source text line information? That kind of information is very helpful in the ECMAError, I really would like to have it in JavaScriptException ... Thanx! Merten > > Try to add "cx.setOptimizationLevel(-1)" in you code after > cx = Context.enter(); > > It will force pure interpreter mode in Rhino which does not > generate any > JVM classes for your scripts. In the interpreter mode Rhino does not > need to parse output of Throwable.printStackTrace() to get > line number > information. > > Regards, Igor ------_=_NextPart_001_01C36BAB.DB43F730 Content-Type: text/html; charset="ISO-8859-1" RE: Rhino - EcmaError not showing line-number (only within small-footprint applet)

Hello,

I've got a question in the same area: is it possible for exceptions
which get wrapped in a JavaScriptException to find out their script
line number/source text line information? That kind of information
is very helpful in the ECMAError, I really would like to have it in
JavaScriptException ...

Thanx!
   Merten

>
> Try to add "cx.setOptimizationLevel(-1)" in you code after
>   cx = Context.enter();
>
> It will force pure interpreter mode in Rhino which does not
> generate any
> JVM classes for your scripts. In the interpreter mode Rhino does not
> need to parse output of Throwable.printStackTrace() to get
> line number
> information.
>
> Regards, Igor

------_=_NextPart_001_01C36BAB.DB43F730-- .