summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-29 23:52:44 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-29 23:52:44 +1100
commit28b3ebb408ac817ac0f465157c77fc5508e340a5 (patch)
tree065ea4e2d504c7a165d693595e0527ba05ec1936
parentcee732300058051cdf3ac4df541aeb8ee4e20e22 (diff)
downloadfengari-28b3ebb408ac817ac0f465157c77fc5508e340a5.tar.gz
fengari-28b3ebb408ac817ac0f465157c77fc5508e340a5.tar.bz2
fengari-28b3ebb408ac817ac0f465157c77fc5508e340a5.zip
src/lapi.js: fengari_argcheck doesn't take a lua_State
-rw-r--r--src/lapi.js6
1 files changed, 3 insertions, 3 deletions
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);