diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-26 15:54:47 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-27 22:43:20 +1000 |
commit | 63446e402d2aa70bb53cbc40563edafb6383cf5d (patch) | |
tree | 7b3dcc3037237e68c4c6cd126dc28e5434ceb8df /src/ltm.js | |
parent | ed0518f417a61b32e531f85c434b8024859202cd (diff) | |
download | fengari-63446e402d2aa70bb53cbc40563edafb6383cf5d.tar.gz fengari-63446e402d2aa70bb53cbc40563edafb6383cf5d.tar.bz2 fengari-63446e402d2aa70bb53cbc40563edafb6383cf5d.zip |
Have ltm.luaT_callorderTM return a boolean
Diffstat (limited to 'src/ltm.js')
-rw-r--r-- | src/ltm.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -159,11 +159,11 @@ const luaT_trybinTM = function(L, p1, p2, res, event) { }; const luaT_callorderTM = function(L, p1, p2, event) { - let res = new lobject.TValue(CT.LUA_TNIL, null); + let res = new lobject.TValue(); if (!luaT_callbinTM(L, p1, p2, res, event)) - return -1; + return null; else - return res.l_isfalse() ? 0 : 1; + return !res.l_isfalse(); }; const fasttm = function(l, et, e) { |