summaryrefslogtreecommitdiff
path: root/src/ltm.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-10 02:34:00 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-10 02:36:37 +1100
commitc1555ca82ca79a6239cb56150d8c54d34e4f391c (patch)
treecb08da6b03d6827e30426a203ac1f7512e866e5c /src/ltm.js
parenta946df6302452323706f715a28029c63f766d1db (diff)
downloadfengari-c1555ca82ca79a6239cb56150d8c54d34e4f391c.tar.gz
fengari-c1555ca82ca79a6239cb56150d8c54d34e4f391c.tar.bz2
fengari-c1555ca82ca79a6239cb56150d8c54d34e4f391c.zip
src/ltm.js: Add 'return' to avoid fallthrough linter warnings
Diffstat (limited to 'src/ltm.js')
-rw-r--r--src/ltm.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ltm.js b/src/ltm.js
index 632efe7..79a483e 100644
--- a/src/ltm.js
+++ b/src/ltm.js
@@ -141,18 +141,18 @@ const luaT_trybinTM = function(L, p1, p2, res, event) {
if (!luaT_callbinTM(L, p1, p2, res, event)) {
switch (event) {
case TMS.TM_CONCAT:
- ldebug.luaG_concaterror(L, p1, p2);
+ return ldebug.luaG_concaterror(L, p1, p2);
case TMS.TM_BAND: case TMS.TM_BOR: case TMS.TM_BXOR:
case TMS.TM_SHL: case TMS.TM_SHR: case TMS.TM_BNOT: {
let n1 = lvm.tonumber(p1);
let n2 = lvm.tonumber(p2);
if (n1 !== false && n2 !== false)
- ldebug.luaG_tointerror(L, p1, p2);
+ return ldebug.luaG_tointerror(L, p1, p2);
else
- ldebug.luaG_opinterror(L, p1, p2, defs.to_luastring("perform bitwise operation on", true));
+ return ldebug.luaG_opinterror(L, p1, p2, defs.to_luastring("perform bitwise operation on", true));
}
default:
- ldebug.luaG_opinterror(L, p1, p2, defs.to_luastring("perform arithmetic on", true));
+ return ldebug.luaG_opinterror(L, p1, p2, defs.to_luastring("perform arithmetic on", true));
}
}
};