diff --git a/README.html b/README.html index 6a7b1b5f..1cb96213 100644 --- a/README.html +++ b/README.html @@ -65,11 +65,12 @@ Support for lua 5.2.x features:
  • _ENV environments model.
  • yield from pcall or metatags.
  • Bitwise operator library. -
  • Better coroutine-related garbage collection. It also includes miscellaneous improvements over luaj 2.0.x:

    Luaj 2.0.x

    Support for luaj 5.1.x features, plus: @@ -741,9 +742,8 @@ and LuaForge:
  • debug code may not be completely removed by some obfuscators
  • tail calls are not tracked in debug information
  • using both version 1 and 2 libraries together in the same java vm has not been tested -
  • module() and setfenv() only partially supported for lau2java or luajc compiled lua
  • values associated with weak keys may linger longer than expected
  • behavior of luaj when a SecurityManager is used has not been fully characterized -
  • Negative zero is treated as identical to integer value zero throughout luaj +
  • negative zero is treated as identical to integer value zero throughout luaj diff --git a/build.xml b/build.xml index f3b04d5c..bd62cc17 100644 --- a/build.xml +++ b/build.xml @@ -5,8 +5,11 @@ - + + + + @@ -20,6 +23,12 @@ + + + + + + diff --git a/src/jse/org/luaj/vm2/lib/jse/JsePlatform.java b/src/jse/org/luaj/vm2/lib/jse/JsePlatform.java index 12ecbd74..541bcf4c 100644 --- a/src/jse/org/luaj/vm2/lib/jse/JsePlatform.java +++ b/src/jse/org/luaj/vm2/lib/jse/JsePlatform.java @@ -22,10 +22,8 @@ package org.luaj.vm2.lib.jse; import org.luaj.vm2.Globals; -import org.luaj.vm2.LuaTable; import org.luaj.vm2.LuaThread; import org.luaj.vm2.LuaValue; -import org.luaj.vm2.Varargs; import org.luaj.vm2.compiler.LuaC; import org.luaj.vm2.lib.Bit32Lib; import org.luaj.vm2.lib.CoroutineLib; @@ -133,7 +131,7 @@ public class JsePlatform { LuaValue[] vargs = new LuaValue[args.length]; for (int i = 0; i < n; ++i) vargs[i] = LuaValue.valueOf(args[i]); - LuaTable arg = LuaValue.listOf(vargs); + LuaValue arg = LuaValue.listOf(vargs); arg.set("n", n); g.set("arg", arg); mainChunk.initupvalue1(g);