Menu

#21 ScriptContext isn't passed to a CompiledScript

v3.0-beta1
closed-fixed
nobody
None
5
2015-03-15
2013-09-26
No

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();
}
~~~~~~~~~

Discussion

  • James Roseborough

    Fixes were put in for this in version 3.0

     
  • James Roseborough

    • status: open --> closed-fixed
     

Log in to post a comment.