fix compilation, tests
This commit is contained in:
@@ -1067,7 +1067,7 @@ public class LuaValue extends Varargs {
|
||||
* @param msg String providing information about the invalid argument
|
||||
* @throws LuaError in all cases
|
||||
*/
|
||||
public static LuaValue argerror(int iarg,String msg) { throw new LuaError("bad argument #"+iarg+" ("+msg+")"); }
|
||||
public static LuaValue argerror(int iarg,String msg) { throw new LuaError("bad argument #"+iarg+": "+msg); }
|
||||
|
||||
/**
|
||||
* Throw a {@link LuaError} indicating an invalid type was supplied to a function
|
||||
|
||||
@@ -80,6 +80,7 @@ class StringTest {
|
||||
@Test
|
||||
void testUtf8() {
|
||||
for (int i = 4; i < 0xffff; i += 4) {
|
||||
if (i == 0xd800) i = 0xe000;
|
||||
char[] c = { (char) (i+0), (char) (i+1), (char) (i+2), (char) (i+3) };
|
||||
String before = new String(c) + " " + i + "-" + (i+4);
|
||||
LuaString ls = LuaString.valueOf(before);
|
||||
|
||||
@@ -87,22 +87,10 @@ import org.luaj.vm2.lib.ResourceFinder;
|
||||
|
||||
public class JseBaseLib extends org.luaj.vm2.lib.BaseLib {
|
||||
|
||||
<<<<<<< HEAD:src/jse/org/luaj/vm2/lib/jse/JseBaseLib.java
|
||||
/** Perform one-time initialization on the library by creating a table
|
||||
* containing the library functions, adding that table to the supplied environment,
|
||||
* adding the table to package.loaded, and returning table as the return value.
|
||||
* <P>Specifically, extend the library loading to set the default value for {@link Globals#STDIN}
|
||||
=======
|
||||
/**
|
||||
* Perform one-time initialization on the library by creating a table
|
||||
* containing the library functions, adding that table to the supplied
|
||||
* environment, adding the table to package.loaded, and returning table as
|
||||
* the return value.
|
||||
* <P>
|
||||
* Specifically, extend the library loading to set the default value for
|
||||
* {@link Globals#STDIN}
|
||||
*
|
||||
>>>>>>> farmboy0/master:luaj-jse/src/main/java/org/luaj/vm2/lib/jse/JseBaseLib.java
|
||||
* @param modname the module name supplied if this is loaded via 'require'.
|
||||
* @param env the environment to load into, which must be a Globals
|
||||
* instance.
|
||||
|
||||
Reference in New Issue
Block a user