Enyby
05a604645d
Fix modulo for edge cases.
...
Reference code:
```
for i,lhs in ipairs({-math.huge, -10.0, 0.0, 10.0, math.huge}) do
for j,rhs in ipairs({-math.huge, -10.0, 0.0, 10.0, math.huge}) do
print(lhs, rhs, lhs % rhs)
end
end
```
2018-12-24 18:30:35 +02:00
Enyby
63ead7aac7
Fix string.format for long integers.
2018-12-24 11:45:06 +02:00
Enyby
c9ba2d4bb1
Fix math.modf for inf/-inf and int values.
2018-12-23 17:48:31 +02:00
Enyby
92cee0812d
Fix JSE math.log for second arg.
2018-12-23 17:06:34 +02:00
Enyby
e61e5694fa
Fix string.match for empty pattern
2018-12-16 06:38:23 +02:00
Enyby
47f8d6e6fc
Fix a frontier pattern match
...
We're not in C anymore. LuaString are not null terminated.
Also need quotes in error messages.
2018-12-11 23:44:39 +02:00
Enyby
14ac4bb7f9
Merge pull request #21 from lorenzos/patch-1
...
Check the type before reusing a NumberValueEntry
2018-11-02 23:11:36 +02:00
Lorenzo Stanco
b8aaaafb68
Check the type before reusing a NumberValueEntry
...
Fixes #20
2018-10-31 15:57:02 +01:00
Enyby
88a557033b
Optimize get new stack for calls.
2018-09-20 20:14:02 +03:00
Enyby
24a8559ceb
Fix make LuaString from copy.
2018-09-17 16:32:09 +03:00
Enyby
028e03e4bc
Avoid synthetic methods
2018-09-16 18:49:26 +03:00
Enyby
5c1f7d2ab2
Make const final
2018-09-16 18:45:52 +03:00
Enyby
9db1254160
Avoid synthetic methods
2018-09-16 18:44:36 +03:00
Enyby
f899c709ff
Remove unused var.
2018-09-16 18:43:39 +03:00
Enyby
9c9e193cc4
Make consts final.
2018-09-16 18:40:06 +03:00
Enyby
e9db487d97
Improve convert function to string.
2018-09-16 18:38:49 +03:00
Enyby
c6fe5d3ed3
Avoid synthetic methods
2018-09-16 17:15:54 +03:00
Enyby
52ab872d08
Improve rawopenfile
2018-09-16 17:11:28 +03:00
Enyby
5d3041c6be
Improved get/setLocal.
2018-09-16 17:09:18 +03:00
Enyby
8d544729a8
Avoid synthetic methods.
2018-09-16 17:05:52 +03:00
Enyby
bd57dddef0
Imrove traceback build.
2018-09-16 17:03:35 +03:00
Enyby
d509e21cc6
Make static classes.
2018-09-16 17:02:24 +03:00
Enyby
5b67841232
Avoid synthetic methods
2018-09-16 16:58:51 +03:00
Enyby
bd4dac18ff
Make classes static to avoid leak parent instance.
2018-09-16 16:56:53 +03:00
Enyby
e02a82ef8d
Improve print.
2018-09-16 16:53:20 +03:00
Enyby
70a5086097
Make constants final.
2018-09-16 16:47:17 +03:00
Enyby
ad20f939b1
Fixed typo in JseOsLib
2018-09-16 16:46:13 +03:00
Enyby
e7058bcd6a
Improved math.atan/atan2.
2018-09-16 16:44:21 +03:00
Enyby
00c7e266ba
Used BufferedInputStream for JseBaseLib
2018-09-16 16:36:40 +03:00
Enyby
e75c5e2fca
Fix Visitor bug.
2018-09-16 16:33:42 +03:00
Enyby
ed46675a25
Improved concat values.
2018-09-16 16:08:53 +03:00
Enyby
8fbca25dce
Fixed table.unpack
2018-09-16 16:03:09 +03:00
Enyby
d0ed5b80e5
Improved error messages.
2018-09-16 15:52:14 +03:00
Enyby
9b77084109
Improved error messages.
2018-09-16 15:39:24 +03:00
Enyby
4f410fba6e
Fixed metatag processing for equality.
2018-09-16 15:30:41 +03:00
Enyby
f164c1cd28
Added optional param stripDebug to string.dump
2018-09-16 15:21:16 +03:00
Enyby
63ca0f94af
Removed synthetic accessors.
2018-09-16 15:13:06 +03:00
Enyby
5bd9827af1
Improve error message for string.char.
2018-09-16 15:09:36 +03:00
Enyby
0a5cccc50f
Fix issue with frontier patterns #3
2018-09-16 15:02:29 +03:00
Enyby
12aded74ca
Removed unused objects.
2018-09-16 10:01:39 +03:00
Enyby
48dd90f6d7
Removed unnecessary override.
2018-09-16 09:58:16 +03:00
Enyby
6333d9acf7
Merge pull request #17 from Enyby/patch-9
...
Fix format float numbers
2018-09-16 09:24:04 +03:00
Benjamin P. Jung
d61ed707ef
Merge pull request #18 from Enyby/patch-1
...
Rename README.html to README.md
2018-09-15 21:40:22 +02:00
Enyby
1e521d8900
Rename README.html to README.md
2018-09-14 15:46:14 +03:00
Benjamin P. Jung
bf8ef8d1a9
Merge pull request #15 from Enyby/patch-7
...
Fix gmatch for pass testsuites
2018-09-14 12:13:34 +02:00
Benjamin P. Jung
69498dbb7c
Merge pull request #16 from Enyby/patch-8
...
Fix build stack traceback in DebugLib
Fixes #7
2018-09-14 12:12:42 +02:00
Benjamin P. Jung
4cc5f4270d
Merge pull request #14 from Enyby/patch-6
...
Fix for proper print OP_SETLIST additional opcode
Closes #7
2018-09-14 12:12:10 +02:00
Enyby
75fa98d13f
Fix format float numbers
...
Fix bug: https://sourceforge.net/p/luaj/bugs/53/ if System support String.format or fallback to old way.
2018-09-14 02:16:42 +03:00
Enyby
a627a868d5
Fix build stack traceback in DebugLib #7
...
If create huge table with a lot items (> 28000) then additional op code for store `c` out of range of op codes and this loop crash.
This PR add case for OP_SETLIST for skip next op if in it stored `c`.
OP_SETLIST not AMode OP
70cb74b4d6/src/core/org/luaj/vm2/Lua.java (L319)
70cb74b4d6/src/core/org/luaj/vm2/Lua.java (L335)
2018-09-14 02:13:21 +03:00
Enyby
f073919f64
Print any code
2018-09-14 02:09:43 +03:00