From c93673f0af0ebdc5165cf0acc340f65b6c6fa786 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 29 Dec 2017 00:48:15 +1100 Subject: src/: Pass js string to luaL_opt(l)string --- src/loslib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/loslib.js') diff --git a/src/loslib.js b/src/loslib.js index ecd42f1..99e5787 100644 --- a/src/loslib.js +++ b/src/loslib.js @@ -86,7 +86,7 @@ const checkoption = function(L, conv, i, buff) { const os_date = function(L) { - let s = lauxlib.luaL_optlstring(L, 1, lua.to_luastring("%c")); + let s = lauxlib.luaL_optlstring(L, 1, "%c"); let t = lauxlib.luaL_opt(L, l_checktime, 2, new Date().getTime() / 1000) * 1000; let stm = new Date(t); let utc = false; -- cgit v1.2.3-70-g09d2