summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-28 23:14:48 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-29 02:32:41 +1100
commiteb214f05b57f2fe0e980d54a0573167b20c218d8 (patch)
tree465fcd2637f0c5e5f1f574c5614d198e7187a0bc /src
parent83de14b90b5f5c80a168d317cf41884aa20a24a0 (diff)
downloadfengari-eb214f05b57f2fe0e980d54a0573167b20c218d8.tar.gz
fengari-eb214f05b57f2fe0e980d54a0573167b20c218d8.tar.bz2
fengari-eb214f05b57f2fe0e980d54a0573167b20c218d8.zip
src/lauxlib.js: luaL_checkstring is just luaL_checklstring
Diffstat (limited to 'src')
-rw-r--r--src/lauxlib.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index e6d407f..b4d839d 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -315,16 +315,14 @@ const luaL_checktype = function(L, arg, t) {
tag_error(L, arg, t);
};
-const luaL_checkstring = function(L, n) {
- return luaL_checklstring(L, n, null);
-};
-
const luaL_checklstring = function(L, arg) {
let s = lua.lua_tolstring(L, arg);
if (s === null || s === undefined) tag_error(L, arg, lua.LUA_TSTRING);
return s;
};
+const luaL_checkstring = luaL_checklstring;
+
const luaL_optlstring = function(L, arg, def) {
if (lua.lua_type(L, arg) <= 0) {
return def;