Commit Graph

110 Commits

Author SHA1 Message Date
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
8b50a3b36b Improve compatibility with lua 5.2. 2012-09-30 15:42:36 +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
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
James Roseborough
8f3f4dfb2a Add unit tests for varargs 2012-09-17 13:53:44 +00:00
James Roseborough
c4b9076b04 Improve debug lib consistency with lua 5.2 2012-09-16 18:08:52 +00:00
James Roseborough
e2646669d6 Improve debug lib consistency with lua 5.2 2012-09-15 16:11:20 +00:00
James Roseborough
6ae66f6fce Improve debug lib consistency with lua 5.2 2012-09-15 04:53:37 +00:00
James Roseborough
f786802bf1 Move static variables used by libraries into explicit Globals object for better thread safety. 2012-09-14 04:12:50 +00:00
James Roseborough
d5456b4b93 Lua 5.2 compatibility fixes. 2012-09-09 16:26:17 +00:00
James Roseborough
8d1333c612 Refactor loading of scripts during testing, remove use of "arg" from error test script. 2012-09-08 22:04:56 +00:00
James Roseborough
f224957b87 Remove support for lua2java within luaj. 2012-09-08 04:15:06 +00:00
James Roseborough
f2d1106fe5 Simplify layout of lua test script locations. 2012-09-07 14:05:41 +00:00
James Roseborough
3bacea878e Remove env from LuaFunction, replace with upValiue array, and remove most occurances of setfenv and getfenv. 2012-09-07 04:36:50 +00:00
James Roseborough
244a964af5 Allow expected test results to be read from zipfile. 2012-09-06 15:00:33 +00:00
James Roseborough
a5fddce465 Lua 5.2 compatibility updates to VM and base and package libraries. 2012-09-06 04:01:28 +00:00
James Roseborough
41d9dd6176 Lua 5.2 compatibility fixes. 2012-09-05 15:34:38 +00:00
James Roseborough
1831fbc96f Lua 5.2 compatibility fixes. 2012-09-03 21:59:51 +00:00
James Roseborough
f6cc1948f1 Compiler for lua 5.2 fixes. 2012-09-02 15:29:30 +00:00
James Roseborough
6ac7e6e452 Remove lua1 compatibility tests. 2012-08-31 15:02:52 +00:00
James Roseborough
79f31955a4 Add grammer for lua 5.2 syntax and add unit test for LuaParser 2012-08-31 14:13:43 +00:00
James Roseborough
f7e17c588e First cut at updating compiler and runtime to handle lua 5.2 bytecodes. Able to compile and execute "hello, world" lua script. 2012-08-23 04:40:40 +00:00
James Roseborough
14d344a045 Allow access to public members of private inner classes where possible 2012-01-31 16:04:26 +00:00
James Roseborough
c46ee6b9bd Fix load(func) when mutiple string fragments are supplied by calls to func 2012-01-21 17:36:03 +00:00
James Roseborough
26ed1ef392 Improve detection and handling of orphaned coroutine threads. 2012-01-21 05:26:41 +00:00
James Roseborough
ebb7169f17 Add arithmetic metatag processing when left hand side is a number and right hand side has metatable 2011-11-13 18:08:18 +00:00
Ian Farmer
3a266748be Fix two issues in WeakTable.java that can lead to infinite loops. 2011-09-27 04:06:21 +00:00
James Roseborough
b769c61e0f Improve coroutine state logic including let unreferenced coroutines be garbage collected 2011-06-12 04:17:02 +00:00
James Roseborough
a88789517d Major refactor of luajava type coercion logic, and method selection logic. 2011-03-03 16:52:12 +00:00
James Roseborough
f335a25e6b Improve jsr-223 bindings, allow ".lua" or "lua" as extensions, find classes when added as vm extension, enhance javadoc, add sources jar. 2011-02-11 17:40:37 +00:00
James Roseborough
e820f00b12 Update math.luac expected result. 2011-01-24 20:01:55 +00:00
James Roseborough
ef1e6e9967 Fix selection logic in luajava when picking from functions with same name 2011-01-14 22:57:44 +00:00
James Roseborough
e1909e734a Add bignum test based on user comment. 2011-01-12 18:10:33 +00:00
James Roseborough
81ad4455dc User luajava coersion logic for JSR-223 binding value coercions from Java to lua 2010-12-03 15:39:26 +00:00
James Roseborough
d32ef20360 Improve __eq metatag processing. 2010-08-25 17:56:51 +00:00
James Roseborough
d5b58107c6 Add tests for metatag operations. 2010-08-25 00:43:13 +00:00
James Roseborough
ee62eefc38 Improve __concat 2010-08-23 15:26:21 +00:00
James Roseborough
00bf5ff4d8 Improve __concat 2010-08-23 05:17:11 +00:00
James Roseborough
02b22b1e0d Refactor concat, add __concat metatag 2010-08-22 17:35:08 +00:00