Subj : Re: Rhino - EcmaError not showing line-number (only within small-footprint To : Ariel Malka From : Igor Bukanov Date : Tue Aug 26 2003 01:06 pm Ariel Malka wrote: > Igor Bukanov wrote: > > >>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. > > > > i tried what you proposed, but the problem still exitsts (well, it's > more subtle than what i first described): > > 1) at least now, when using setOptimizationLevel(-1), the behaviors > are the same both with the full js.jar and the small foot-print one. > > 2) BUT, i can see now that it's only some of the errors that are not > showing line-numbers (examples following): > > a) var z = ,3; --> SyntaxError WITH LINE # > > b) fu --> ReferenceError WITHOUT LINE # > > c) var x = z; --> ReferenceError WITHOUT LINE # > > d) function boo() { fu } boo(); --> ReferenceError WITH LINE # That was fixed in Rhino CVS, you can get a build for that at ftp://ftp.mozilla.org/pub/js/rhinoLatest.zip . Regards, Igor .