Mercurial Hosting > luan
diff core/src/luan/impl/LuanCompiler.java @ 675:d95caff8ba8c
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 12 Apr 2016 19:41:26 -0600 |
parents | d3e5414bdf4c |
children | 49f3d290bebd |
line wrap: on
line diff
--- a/core/src/luan/impl/LuanCompiler.java Tue Apr 12 19:31:18 2016 -0600 +++ b/core/src/luan/impl/LuanCompiler.java Tue Apr 12 19:41:26 2016 -0600 @@ -14,7 +14,7 @@ public final class LuanCompiler { private LuanCompiler() {} // never - public static LuanFunction compile(LuanState luan,String sourceName,String sourceText,LuanTable env,boolean allowExpr) throws LuanException { + public static LuanFunction compile(String sourceName,String sourceText,LuanTable env,boolean allowExpr) throws LuanException { LuanParser parser = new LuanParser(sourceName,sourceText); parser.addVar( "java" ); parser.addVar( "require" ); @@ -32,7 +32,7 @@ } Closure closure; try { - closure = (Closure)fnClass.getConstructor(LuanState.class,LuanJava.class).newInstance(luan,java); + closure = (Closure)fnClass.getConstructor(LuanJava.class).newInstance(java); } catch(NoSuchMethodException e) { throw new RuntimeException(e); } catch(InstantiationException e) {