From a02f4e93b92e7ebb7ef038ad151e51652b0ce84d Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 18 Apr 2017 15:20:37 +0200 Subject: No more Table, just TValue with table type and Map value --- src/loslib.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/loslib.js') diff --git a/src/loslib.js b/src/loslib.js index 20675a1..a319b3b 100644 --- a/src/loslib.js +++ b/src/loslib.js @@ -33,14 +33,14 @@ const getfield = function(L, key, d, delta) { let res = lapi.lua_tointegerx(L, -1); if (res !== false) { /* field is not an integer? */ if (t != lua.CT.LUA_TNIL) /* some other value? */ - return lauxlib.luaL_error(L, `field '${key}' is not an integer`); + return lauxlib.luaL_error(L, lua.to_luastring(`field '${key}' is not an integer`), true); else if (d < 0) /* absent field; no default? */ - return lauxlib.luaL_error(L, `field '${key}' missing in date table`); + return lauxlib.luaL_error(L, lua.to_luastring(`field '${key}' missing in date table`), true); res = d; } else { if (!(-L_MAXDATEFIELD <= res && res <= L_MAXDATEFIELD)) - return lauxlib.luaL_error(L, `field '${key}' is out-of-bound`); + return lauxlib.luaL_error(L, lua.to_luastring(`field '${key}' is out-of-bound`), true); res -= delta; } lapi.lua_pop(L, 1); -- cgit v1.2.3-54-g00ecf