From 1358ae72c9814ed34bce7300182c796c2e910ead Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 16 May 2017 17:52:44 +1000 Subject: src/lobject.js: Add default case to switch --- src/lobject.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); } }; -- cgit v1.2.3-70-g09d2