Mercurial Hosting > luan
diff src/luan/impl/LuanParser.java @ 1133:ba4daf107e07
fix security bug
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 17 Jan 2018 20:59:42 -0700 |
parents | 46732cc0ab87 |
children | 9fa8b8389578 |
line wrap: on
line diff
--- a/src/luan/impl/LuanParser.java Tue Jan 02 21:30:41 2018 -0700 +++ b/src/luan/impl/LuanParser.java Wed Jan 17 20:59:42 2018 -0700 @@ -2012,12 +2012,12 @@ +"import luan.Luan; " +"import luan.LuanFunction; " +"import luan.LuanState; " - +"import luan.LuanJava; " + +"import luan.LuanJavaOk; " +"import luan.LuanException; " +"import luan.modules.PackageLuan; " +"public class " + className +" extends Closure { " - +"public "+className+"(LuanJava java) throws LuanException { " + +"public "+className+"(LuanJavaOk java) throws LuanException { " +"super("+upValueSymbols.size()+",java); " + init(upValueSymbols) +"} " @@ -2038,7 +2038,7 @@ stmt.add( "return LuanFunction.NOTHING; " ); Expr exp = new Expr(Val.SINGLE,false); exp.add( "" - +"new Closure("+upValueSymbols.size()+",ljava) { " + +"new Closure("+upValueSymbols.size()+",javaOk) { " +"{ " + init(upValueSymbols) +"} "