summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-29 17:07:20 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-29 17:07:20 +1000
commit490e035f97ace73b3ee1c1033fb412b5d1433ce2 (patch)
tree8ec646741214c2a9db1f5e68a17a4a5f1c829edc /src/lapi.js
parent84dfcea32ad517400e970b7cf978246367ec9e46 (diff)
downloadfengari-490e035f97ace73b3ee1c1033fb412b5d1433ce2.tar.gz
fengari-490e035f97ace73b3ee1c1033fb412b5d1433ce2.tar.bz2
fengari-490e035f97ace73b3ee1c1033fb412b5d1433ce2.zip
Fix some warnings found by closure-compiler
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lapi.js b/src/lapi.js
index d992b0b..228bba1 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -954,7 +954,7 @@ const lua_callk = function(L, nargs, nresults, ctx, k) {
assert(k === null || !(L.ci.callstatus & lstate.CIST_LUA), "cannot use continuations inside hooks");
assert(nargs + 1 < L.top - L.ci.funcOff, "not enough elements in the stack");
assert(L.status === TS.LUA_OK, "cannot do calls on non-normal thread");
- assert(nargs === defs.LUA_MULTRET || (L.ci.top - L.top >= nargs - nresults, "results from function overflow current stack size"));
+ assert(nargs === defs.LUA_MULTRET || (L.ci.top - L.top >= nargs - nresults), "results from function overflow current stack size");
let func = L.top - (nargs + 1);
if (k !== null && L.nny === 0) { /* need to prepare continuation? */
@@ -976,7 +976,7 @@ const lua_call = function(L, n, r) {
const lua_pcallk = function(L, nargs, nresults, errfunc, ctx, k) {
assert(nargs + 1 < L.top - L.ci.funcOff, "not enough elements in the stack");
assert(L.status === TS.LUA_OK, "cannot do calls on non-normal thread");
- assert(nargs === defs.LUA_MULTRET || (L.ci.top - L.top >= nargs - nresults, "results from function overflow current stack size"));
+ assert(nargs === defs.LUA_MULTRET || (L.ci.top - L.top >= nargs - nresults), "results from function overflow current stack size");
let c = {
func: null,