Description
Using the standard less 1.1.4 dist I could use Java/Rhino to compile a less source.
When I use the latest less-1.1.5.js dist than I get the following error:
org.mozilla.javascript.EcmaError: TypeError: Cannot read property "tree" from undefined (less.js#13)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3785)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3763)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3791)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3810)
at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3823)
at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1457)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1428)
at script.require(less.js:13)
at script(less.js:1252)
at script(less.js:8)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3178)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
when trying to:
cx.evaluateReader(scope, new InputStreamReader(lessJs.openConnection().getInputStream()), "less.js", 1, null);
(Where cx is the Mozilla Rhino Context object).
It seems Rhino is unable to compile the latest less.js...
Any ideas?