Commit Graph

1005 Commits

Author SHA1 Message Date
James Roseborough
eef737fde1 Fix math.pow() for custom platforms. 2007-12-12 19:11:25 +00:00
James Roseborough
6569563ddc Implement math.pow() for all platforms, add unit tests for basic math operations. 2007-12-11 19:47:38 +00:00
Shu Lei
42b94709f0 1. added a shutdown method for LuaState and DebugLuaState to clean up before shutting down
2. added the capability to set LUA_PATH
3. minor debugging improvement
4. bump up the version to 0.12 because the addition outputRedirect debug message is not compatible with the previous versions
2007-12-11 01:51:28 +00:00
James Roseborough
ab8fc4883e Implement foreach(), foreachi() 2007-12-11 01:18:04 +00:00
James Roseborough
1923d8e6a0 Add math.random() and math.randomseed() 2007-12-08 01:42:51 +00:00
James Roseborough
215134feb5 Correct javadoc 2007-12-08 01:21:14 +00:00
James Roseborough
0f3fe0452d Add table.getn() for compatibility 2007-12-08 01:20:30 +00:00
Shu Lei
9706564647 simplify the debug protocol - no more ACK to debug client for resume, stepInto, stepOver and stepReturn 2007-12-08 00:40:45 +00:00
Shu Lei
f19fa165b9 1. added J2sePlatform for StandardLuaJVM to use J2SE DebugNetSupportImpl 2007-12-07 19:51:06 +00:00
James Roseborough
9cf85debad Add test cases for loadfile, dofile on bad filenames. 2007-12-07 18:43:34 +00:00
James Roseborough
66e78f6980 Merge STDOUT and stdout 2007-12-07 18:20:46 +00:00
Shu Lei
23710a8994 missed the file when I upgrade to version 0.11 2007-12-07 01:02:53 +00:00
James Roseborough
d7c15f99a1 fix setmetatable() to match C version 2007-12-07 00:52:39 +00:00
James Roseborough
dc08fcbec2 Send test error output to System.err 2007-12-06 23:31:11 +00:00
James Roseborough
e8e1aaf892 Fix for loop processing, add vmerror() 2007-12-06 22:59:16 +00:00
James Roseborough
6871903303 Add PackageLib.setLuaPath() utility method. 2007-12-06 21:53:42 +00:00
James Roseborough
2ee0a1eeed Add PackageLib.setLuaPath() utility method. 2007-12-06 21:52:37 +00:00
James Roseborough
edd8bc33ea remove compiled versions of test files 2007-12-06 21:14:44 +00:00
Ian Farmer
a6f46413c0 Added 'loops' test case.
This script tests the generic for loop using a Lua closure as the iterator
function, which is currently broken.
2007-12-06 19:16:56 +00:00
James Roseborough
644896c467 Improve error reporting. 2007-12-06 15:29:49 +00:00
James Roseborough
8f581c8f07 Improve testing around require() features. 2007-12-05 22:00:37 +00:00
James Roseborough
7db4d54d50 Implement require() using package.loaders, etc. add preload_loader, lua_loader, and java_loader. 2007-12-05 01:46:59 +00:00
Shu Lei
3c05880012 added getDebugHost() and getDebugPort() methods to Platform for convenience 2007-12-01 01:04:34 +00:00
Shu Lei
9fd34436fe minor refactoring 2007-12-01 00:40:51 +00:00
Shu Lei
ca721124e1 continuation of previous work to add factory method to create LuaState or DebugLuaState dynamically, refactored DebugSupport so that Platform.getInstance().getDebugSupport() does not depend on debug module 2007-12-01 00:17:18 +00:00
Shu Lei
96864694de added a factory method to LuaState to dynamically create LuaState or DebugLuaState depending on the presence of the platform debug properties 2007-11-30 23:47:44 +00:00
James Roseborough
0db9925ee9 Add test scripts for require() 2007-11-30 16:41:59 +00:00
Shu Lei
d7e0aeaac5 bug fix 2007-11-29 22:59:09 +00:00
Shu Lei
89e4f9cc02 update the unit test to reflect to new StandardLuaVM run() behavior 2007-11-29 22:41:29 +00:00
Shu Lei
fd9b9b51c3 1. completed j2me debugging support
2. refactored DebugEvents and DebugRequests
2007-11-29 21:24:07 +00:00
James Roseborough
c57969bc77 Replace middle dot with period in elipses 2007-11-29 17:54:15 +00:00
James Roseborough
14007944a1 Throw lua error when attempting table access on a non-table value. 2007-11-29 01:11:51 +00:00
James Roseborough
b493230edb Initial implementation of module, package.seeall 2007-11-29 01:11:18 +00:00
Ian Farmer
62cda2bc49 Change upvalues to point to the LuaState instead of directly to the stack.
This change has two benefits:
 * Reference to LuaState's stack does not need to be adjusted when
   the stack needs to grow.
 * One less heap object for a closed upvalue.
2007-11-21 02:21:35 +00:00
Shu Lei
9f7b675220 1. updated the code to use LuaErrorException and removed VMException
2. refactored debugging network communication layer
2007-11-20 23:26:50 +00:00
Shu Lei
6c9d02b3a3 1. changed to use LuaErrorException and removed VMException
2. refactored the debug network communication layer
2007-11-20 23:25:50 +00:00
James Roseborough
62a3510272 Fix next() 2007-11-20 00:10:18 +00:00
Ian Farmer
ad5e776dc9 Add a string.gmatch call to strlib.lua test case and fix the bug it exposed. 2007-11-19 23:06:26 +00:00
James Roseborough
0d1aed5b5a Clear stack before any lua call. 2007-11-19 22:30:55 +00:00
James Roseborough
3331abeb1d Fixes to rawset, rawget, collectgarbage 2007-11-16 23:55:58 +00:00
James Roseborough
f2867eee0d tests for tostring, tonumber 2007-11-16 19:45:12 +00:00
James Roseborough
d2b58a3abf Fix tonumber() 2007-11-16 19:43:00 +00:00
James Roseborough
45f483f706 Replace settop(0) with resettop() 2007-11-16 19:19:13 +00:00
James Roseborough
d7ae4a809c Fixes to unpack 2007-11-16 19:17:18 +00:00
James Roseborough
ecacbfde92 Fix thread constructor so upvalues setfenv work correctly 2007-11-16 18:13:40 +00:00
James Roseborough
eef469c715 Add unit tests for part of base library plus fixes to [gs]etfenv, [gs]etmetatable 2007-11-16 00:41:43 +00:00
Shu Lei
31abaacec1 added remote debugging support 2007-11-15 21:08:28 +00:00
James Roseborough
549c35aa59 Make compile for j2me 2007-11-15 01:31:50 +00:00
James Roseborough
abad119a5c Introduce LuaErrorException which is thrown and caught when a lua error() needs to be processed. 2007-11-15 00:49:02 +00:00
James Roseborough
7e22487624 Bullet-proof dynamic stack size 2007-11-14 17:52:39 +00:00