aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Merge pull request #64 from daurnimator/lightuserdata-keysBenoit Giannangeli2017-05-23
|\ | | | | Fix collisions with lightuserdata table keys
| * src/ltable.js: Convert float keys that fit in an integer to integersdaurnimator2017-05-23
| |
| * src/lcode.js: luaK_intK no longer collides with stringsdaurnimator2017-05-23
| |
| * src/ltable.js: Implement table_hash for lightuserdatadaurnimator2017-05-23
|/
* src/lmathlib.js: Optimise math.ultdaurnimator2017-05-23
| | | | See https://jsperf.com/unsigned-comparison
* Merge pull request #63 from daurnimator/fix-skipped-testsBenoit Giannangeli2017-05-22
|\ | | | | Investigated + fixed some skipped tests
| * tests/test-suite/events.js: un-skip fixed testsdaurnimator2017-05-23
| |
| * tests/test-suite/errors.js: copy setup from previous test to get a skipped ↵daurnimator2017-05-23
| | | | | | | | test passing
| * tests/test-suite/errors.js: un-skip passing testdaurnimator2017-05-23
| |
| * tests/test-suite/math.js: un-skip passing testdaurnimator2017-05-23
| |
| * tests/test-suite/nextvar.js: un-skip passing testdaurnimator2017-05-23
| |
| * tests/test-suite/errors.js: un-skip test as we can now recover from a stack ↵daurnimator2017-05-23
| | | | | | | | overflow
| * src/ldo.js: luaG_runerror takes lua stringsdaurnimator2017-05-23
| |
| * src/ldo.js: free CallInfo to recover from (lua) stack overflowdaurnimator2017-05-23
| |
| * Revert "src/lstate.js: Remove useless luaE_freeCI"daurnimator2017-05-23
| | | | | | | | This reverts commit 6646bebd474b95a2d4cbb8558c0d1cb5b5353de0.
| * tests/test-suite/strings.js: un-skip fixed testdaurnimator2017-05-23
| |
| * src/lapi.js: Throw errors when attempting to use pseudo-index with index2addr_daurnimator2017-05-23
| |
| * src/lobject.js: Don't assume LUA_COMPAT_FLOATSTRINGdaurnimator2017-05-23
| |
| * Add luaD_inctop calls where appropriatedaurnimator2017-05-23
| |
| * src/lauxlib.js: Use lua_pushfstring for formatting numbersdaurnimator2017-05-23
| |
| * Introduce luaO_tostringdaurnimator2017-05-23
| |
| * src/luaconf.js: Implement lua_integer2str and lua_number2strdaurnimator2017-05-23
| |
| * src/lstrlib: math.mininteger has to print speciallydaurnimator2017-05-23
| |
| * yarn.lock: Update sprintf-js version requireddaurnimator2017-05-23
| |
| * src/lvm.js: Introduce cvt2num at mirror cvt2strdaurnimator2017-05-22
| |
| * Introduce lvm.cvt2strdaurnimator2017-05-22
| | | | | | | | In future this could be configurable
| * src/lapi.js: Simplify+optimise lua_rotatedaurnimator2017-05-22
|/
* Merge remote-tracking branch 'daurnimator/stack'Benoit Giannangeli2017-05-22
|\
| * src/ldo.js: Add assert to luaD_reallocstack from C sourcesdaurnimator2017-05-22
| |
| * src/lcode.js: Fix patchtestreg to actually modify the instructiondaurnimator2017-05-22
| |
| * Compare allowed stack indices to stack_lastdaurnimator2017-05-22
| | | | | | | | Not L.stack.length which is more equivalent to C's L->stacksize
| * src/lstate.js: Remove useless luaE_freeCIdaurnimator2017-05-22
| | | | | | | | We don't keep around a pool of callinfo objects
| * src/ldo.js: Add luaD_shrinkstack callsdaurnimator2017-05-22
| |
| * Add luaD_checkstack callsdaurnimator2017-05-22
| |
| * Fix lua_checkstack to check against LUAI_MAXSTACK. Adds luaD_growstack and ↵daurnimator2017-05-22
| | | | | | | | luaD_reallocstack
* | Fixed bad boolean handling in luaV_finishOpBenoit Giannangeli2017-05-22
| |
* | luaV_finishOp put concat results in wrong stack slotBenoit Giannangeli2017-05-22
|/
* tests/test-suite/math.js: Now passesdaurnimator2017-05-22
|
* tests/test-suite/inprogress/math.js: Move floatbits calculation to prefixdaurnimator2017-05-22
|
* src/lmathlib.js: Return nothing from math_randomseeddaurnimator2017-05-22
|
* Checks for nil and NaN table keysdaurnimator2017-05-22
|
* src/lmathlib.js: Implement math.atan second argumentdaurnimator2017-05-22
|
* src/lmathlib.js: math.ult needs to compare as if integers are unsigneddaurnimator2017-05-22
|
* src/lmathlib.js: Math.abs can return out of range integersdaurnimator2017-05-22
|
* src/lbaselib.js: tonumber shouldn't ignore trailing junkdaurnimator2017-05-22
| | | | Sadly I couldn't figure out a way to continue use of parseInt
* tests: remove some extra printsdaurnimator2017-05-22
|
* Add TMcachedaurnimator2017-05-22
|
* src/lvm.js: Inline luaV_finishget and luaV_finishset; change recursion into loopdaurnimator2017-05-22
| | | | | Fixes exceeding stack size Brings more in line with C source
* src/lstrlib.js: Always return a new string from num2strauxdaurnimator2017-05-22
| | | | It may get mutated in lua_number2strx
* src/lstrlib.js: Remove useless copies in num2strauxdaurnimator2017-05-22
|