Commit Graph

172 Commits

Author SHA1 Message Date
Nikolay Neupokoev
b36e4fa199 Add Gradle build
Fixed warnings about missing deprecation annotation and variable name in
one test failing on Java greater version 9.

This commit is simpler then
5847ee4d97
2020-11-05 00:12:58 -08:00
James Roseborough
828e4be019 Fix JsePlatform.luaMain() to provide an "arg" table in the chunk's environment. 2018-09-13 11:53:00 +02:00
James Roseborough
cdc33ab5b6 Add test to detect class load order issues and fix load order bug in lua string class. 2015-04-21 14:19:18 +00:00
James Roseborough
237c384d55 LuaScriptEngineFactory.getScriptEngine() now returns new instance of lua script engine for each call. 2015-03-18 15:07:56 +00:00
James Roseborough
31c13af7b4 Let os.getenv() return System.getenv() values first for JSE, then fall back to properties 2015-03-15 23:23:38 +00:00
James Roseborough
4cf1dca264 Fix aliasing issue for some multiple assignments from varargs return values 2015-03-15 21:32:34 +00:00
James Roseborough
06a9ddbb88 Fix return value for table.remove() and table.insert() 2015-03-15 05:45:50 +00:00
James Roseborough
4c3bb1d709 Add test for balanced match on empty string. 2015-03-14 20:09:09 +00:00
James Roseborough
8c8c98fb00 Allow access to Java inner classes using lua field syntax. 2015-03-14 17:53:55 +00:00
James Roseborough
71500e7d8d Allow error() function to pass any lua object including non-strings. 2015-03-08 20:29:37 +00:00
James Roseborough
83d54e9d77 Coerce byte[] to LuaString, pass LuaValue as-is in CoerceJavaToLua.coerce(). 2014-07-04 02:58:44 +00:00
James Roseborough
7d06027154 Fix bug in Globals.UTF8Stream affecting loading from Readers. Add buffered input for compiling and loading of scripts. 2014-07-03 21:44:27 +00:00
James Roseborough
a6105d5f62 Rename Globals.FINDER to Globals.finder. 2014-03-09 18:00:40 +00:00
James Roseborough
e9ee95fd58 Autoflush and encode written bytes in script contexts (fixes issue #20) 2014-03-09 17:59:25 +00:00
James Roseborough
736218d1f2 Pass user-supplied ScriptContext to script engine evaluation (fixes issue #21). 2014-03-09 16:45:57 +00:00
James Roseborough
7b97573ac8 Fix balanced match for empty string (fixes issue #23) 2014-03-09 15:33:44 +00:00
James Roseborough
de33943eaf Update javadoc comments related to library initialization and loading lua code. 2013-12-29 22:49:23 +00:00
James Roseborough
04fd646c87 Update javadoc comments related to library inintialization. 2013-11-22 17:13:55 +00:00
James Roseborough
2123d3f924 Refactor API's related to compiling and loading scripts and character encoding handling. 2013-09-18 05:32:30 +00:00
James Roseborough
a552494b72 Implement optional table argument to os.time() 2013-07-14 18:53:03 +00:00
James Roseborough
9179e74e36 Improve compatibility of os.date() function 2013-07-14 17:28:38 +00:00
James Roseborough
db1c7a17b2 Implement most '%' formatting types for os.date() 2013-07-14 15:31:32 +00:00
James Roseborough
e9c39d616b Add test that removes elements from table while iterating. 2013-07-05 21:02:00 +00:00
Ian Farmer
f3aeb69d30 Refactor table implementation. 2013-07-05 06:24:46 +00:00
Ian Farmer
49fc8ec7ec Remove obsolete test class TableArrayTest.java.
This file contained the same tests as TableTest.java.
2013-07-04 20:09:11 +00:00
James Roseborough
9b59234327 Fix Globals.load() to call the library with an empty modname and the globals as the environment. Change standard libraries to be called with two arguments, a modname and an environment. 2013-07-04 15:54:36 +00:00
James Roseborough
711c8c817f Fix Lua to Java coercion directly on Java classes. 2013-07-01 14:45:34 +00:00
James Roseborough
869f0e003c Coerce script engine eval() return values to Java. 2013-07-01 13:49:52 +00:00
James Roseborough
9a3f6161ce Fix pluggable scripting engine lookup, simplify implementation, and add unit tests. 2013-07-01 05:51:27 +00:00
James Roseborough
cef619cb40 Improve tests and behavior of string.indexOf operations. 2013-01-27 18:42:21 +00:00
James Roseborough
1f89f30239 Fix bug 3495802 to return correct offset of substrings from string.find() 2013-01-27 16:14:03 +00:00
James Roseborough
8a5e811c7f Add test for long substring. 2013-01-26 20:04:05 +00:00
James Roseborough
79ddb79c4d Fix bug 3565008 so that short substrings are backed by short arrays. 2013-01-26 20:00:04 +00:00
James Roseborough
fae55ba56a Fix bug 3597515 memory leak due to string caching by simplifying caching logic. 2013-01-26 19:01:00 +00:00
James Roseborough
fa2b7cfdf3 Fix typo in tests. 2012-10-13 15:14:48 +00:00
James Roseborough
c921b033c5 Improve documentation and tests. 2012-10-13 14:32:34 +00:00
James Roseborough
3d2812ed35 Add command line option for file to test program. 2012-10-13 14:15:04 +00:00
James Roseborough
1a4eb0e3c7 Improve documentation and samples. 2012-10-03 14:21:26 +00:00
James Roseborough
7b6381c352 Add ability to create runnable jar file from lua script with sample build file build-app.xml 2012-10-02 07:00:17 +00:00
James Roseborough
17f233adf8 Fix tests to acount for platform differences. 2012-09-30 16:51:57 +00:00
James Roseborough
8b50a3b36b Improve compatibility with lua 5.2. 2012-09-30 15:42:36 +00:00
James Roseborough
0c93edfd56 Improve compatibility with lua 5.2. 2012-09-21 14:32:07 +00:00
James Roseborough
be4a320bf9 Improve compatibility with lua 5.2. 2012-09-21 05:24:58 +00:00
James Roseborough
9ae6767f76 Improve compatibility with lua 5.2. 2012-09-20 05:30:41 +00:00
James Roseborough
4d8877e56b Improve compatibility with lua 5.2. 2012-09-20 05:15:31 +00:00
James Roseborough
406068190b Improve string compatibility with lua 5.2. 2012-09-19 14:00:26 +00:00
James Roseborough
a8aeddfc60 Improve iolib test. 2012-09-19 05:37:39 +00:00
James Roseborough
0f70a8e962 Fixes to luajc bytecode generation. 2012-09-19 03:19:55 +00:00
James Roseborough
4bf132c01e Fix for loop processing in luajc compiler code generator for lua 5.3 bytecodes 2012-09-18 14:17:00 +00:00
James Roseborough
ef94aa3abb Add unit tests for varargs 2012-09-18 03:55:51 +00:00