summaryrefslogtreecommitdiff
path: root/src/ldblib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-29 02:32:25 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-29 02:32:25 +1100
commitffbae7dce27aff68a0f37529e1837378efa43a36 (patch)
tree5df7192e84b2b264dd9bda11cf9d3ada1266e51a /src/ldblib.js
parent30f0a99f414a1883cc3cc2f78d9debbe0de5eb2c (diff)
downloadfengari-ffbae7dce27aff68a0f37529e1837378efa43a36.tar.gz
fengari-ffbae7dce27aff68a0f37529e1837378efa43a36.tar.bz2
fengari-ffbae7dce27aff68a0f37529e1837378efa43a36.zip
src/ldblib.js: Fix incorrect argument type to luaL_argerror
Diffstat (limited to 'src/ldblib.js')
-rw-r--r--src/ldblib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldblib.js b/src/ldblib.js
index 940c525..e687ec1 100644
--- a/src/ldblib.js
+++ b/src/ldblib.js
@@ -200,7 +200,7 @@ const db_setlocal = function(L) {
let level = lauxlib.luaL_checkinteger(L, arg + 1);
let nvar = lauxlib.luaL_checkinteger(L, arg + 2);
if (!lua.lua_getstack(L1, level, ar)) /* out of range? */
- return lauxlib.luaL_argerror(L, arg + 1, "level out of range");
+ return lauxlib.luaL_argerror(L, arg + 1, lua.to_luastring("level out of range", true));
lauxlib.luaL_checkany(L, arg + 3);
lua.lua_settop(L, arg + 3);
checkstack(L, L1, 1);