From 28b3ebb408ac817ac0f465157c77fc5508e340a5 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 29 Jan 2018 23:52:44 +1100 Subject: src/lapi.js: fengari_argcheck doesn't take a lua_State --- src/lapi.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lapi.js b/src/lapi.js index 2d0e7c2..6196812 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -255,19 +255,19 @@ const lua_pushnil = function(L) { }; const lua_pushnumber = function(L, n) { - fengari_argcheck(L, typeof n === "number"); + fengari_argcheck(typeof n === "number"); L.stack[L.top] = new TValue(LUA_TNUMFLT, n); api_incr_top(L); }; const lua_pushinteger = function(L, n) { - fengari_argcheck(L, typeof n === "number" && (n|0) === n); + fengari_argcheck(typeof n === "number" && (n|0) === n); L.stack[L.top] = new TValue(LUA_TNUMINT, n); api_incr_top(L); }; const lua_pushlstring = function(L, s, len) { - fengari_argcheck(L, typeof len === "number"); + fengari_argcheck(typeof len === "number"); let ts; if (len === 0) { s = to_luastring("", true); -- cgit v1.2.3-70-g09d2