From ffbae7dce27aff68a0f37529e1837378efa43a36 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 29 Dec 2017 02:32:25 +1100 Subject: src/ldblib.js: Fix incorrect argument type to luaL_argerror --- src/ldblib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2