summaryrefslogtreecommitdiff
path: root/src/ltm.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ltm.js')
-rw-r--r--src/ltm.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ltm.js b/src/ltm.js
index 8f4908c..88f25fb 100644
--- a/src/ltm.js
+++ b/src/ltm.js
@@ -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) {