Mercurial Hosting > luan
diff src/luan/interp/LuanStateImpl.java @ 108:3c404a296995
make Package module more standard;
return _ENV by default;
add "import" statement;
git-svn-id: https://luan-java.googlecode.com/svn/trunk@109 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 23 May 2014 03:21:54 +0000 |
parents | 6ca02b188dba |
children | 2428ecfed375 |
line wrap: on
line diff
--- a/src/luan/interp/LuanStateImpl.java Mon May 19 09:17:57 2014 +0000 +++ b/src/luan/interp/LuanStateImpl.java Fri May 23 03:21:54 2014 +0000 @@ -119,7 +119,7 @@ UpValue getUpValue(UpValue.EnvGetter getter) throws LuanException { UpValue uv = envs.get(getter); if( uv == null ) { - LuanTable env = newEnvironment(); + LuanTable env = new LuanTable(); uv = new UpValue(env); envs.put(getter,uv); }