... this time in combination with running Rhino's CVS HEAD.
Does anybody know what is going on here[1]? All tests that try to execute some Javascript fail with a "FAILED ASSERTION" inside Rhino - the innermost exception always seems to be
[junit] --- Nested Exception --- [junit] java.lang.RuntimeException: FAILED ASSERTION [junit] at org.mozilla.javascript.Context.codeBug(Context.java:2093) [junit] at org.mozilla.javascript.ScriptOrFnNode.setBaseLineno(ScriptOrFnNode.java:66) [junit] at org.mozilla.javascript.IRFactory.initScript(IRFactory.java:65) [junit] at org.mozilla.javascript.Parser.parse(Parser.java:148) [junit] at org.mozilla.javascript.Context.compile(Context.java:1923) [junit] at org.mozilla.javascript.Context.compileString(Context.java:927) [junit] at org.mozilla.javascript.Context.evaluateString(Context.java:784) [junit] at org.apache.bsf.engines.javascript.JavaScriptEngine.eval(Unknown Source) [junit] at org.apache.bsf.util.BSFEngineImpl.exec(Unknown Source) [junit] at org.apache.bsf.BSFManager$6.run(Unknown Source) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at org.apache.bsf.BSFManager.exec(Unknown Source) [junit] at org.apache.bsf.BSFManager.exec(Unknown Source)
It means that org.apache.bsf.engines.javascript.JavaScriptEngine.eval calls org.mozilla.javascript.Context.evaluateString with negative value for script starting line number. Rhino does not accept it: use 1 if unknown.
Regards, Igor
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
