diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-16 17:52:44 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-16 17:52:44 +1000 |
commit | 1358ae72c9814ed34bce7300182c796c2e910ead (patch) | |
tree | 749d7f0ee5b6da5b8ae731e082f22fc3755ec214 | |
parent | a553ac00a4119eb247df5e123df60d447e96c31a (diff) | |
download | fengari-1358ae72c9814ed34bce7300182c796c2e910ead.tar.gz fengari-1358ae72c9814ed34bce7300182c796c2e910ead.tar.bz2 fengari-1358ae72c9814ed34bce7300182c796c2e910ead.zip |
src/lobject.js: Add default case to switch
-rw-r--r-- | src/lobject.js | 2 |
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); } }; |