Subj : Re: Rhino - EcmaError not showing line-number (only within small-footprint applet) To : netscape.public.mozilla.jseng From : ariel_ml@netvision.net.il (Ariel Malka) Date : Tue Aug 26 2003 03:51 am 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 # any cure, doctor? .