ScriptContext isn't passed to a CompiledScript
Brought to you by:
ian_farmer,
jim_roseborough
There is a bug in org.luaj.vm2.script.LuaScriptEngine#eval method.
I believe context parameter should be passed to CompiledScript.eval.
~~~~~~~~
@Override
public Object eval(Reader reader, ScriptContext context)
throws ScriptException {
return compile(reader).eval();
}
~~~~~~~~~
Fixes were put in for this in version 3.0