aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-16 17:52:44 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-16 17:52:44 +1000
commit1358ae72c9814ed34bce7300182c796c2e910ead (patch)
tree749d7f0ee5b6da5b8ae731e082f22fc3755ec214 /src
parenta553ac00a4119eb247df5e123df60d447e96c31a (diff)
downloadfengari-1358ae72c9814ed34bce7300182c796c2e910ead.tar.gz
fengari-1358ae72c9814ed34bce7300182c796c2e910ead.tar.bz2
fengari-1358ae72c9814ed34bce7300182c796c2e910ead.zip
src/lobject.js: Add default case to switch
Diffstat (limited to 'src')
-rw-r--r--src/lobject.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 9790d23..52e9712 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -531,6 +531,7 @@ const intarith = function(L, op, v1, v2) {
case defs.LUA_OPSHR: return (v1 >> v2);
case defs.LUA_OPUNM: return (0 - v1)|0;
case defs.LUA_OPBNOT: return (~0 ^ v1);
+ default: assert(0);
}
};
@@ -545,6 +546,7 @@ const numarith = function(L, op, v1, v2) {
case defs.LUA_OPIDIV: return (v1 / v2);
case defs.LUA_OPUNM: return -v1;
case defs.LUA_OPMOD: return v1 % v2;
+ default: assert(0);
}
};