From a624b6d9c9ba44131ad91171dfa703d09777ace5 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sat, 27 May 2017 09:35:34 +0200 Subject: luaS_newliteral takes a js string --- src/lapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lapi.js b/src/lapi.js index 4abe0c2..9b40b36 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -1046,7 +1046,7 @@ const lua_concat = function(L, n) { if (n >= 2) lvm.luaV_concat(L, n); else if (n === 0) { - L.stack[L.top++] = new TValue(CT.LUA_TLNGSTR, lstring.luaS_newliteral(L, [])); + L.stack[L.top++] = new TValue(CT.LUA_TLNGSTR, lstring.luaS_newliteral(L, "")); assert(L.top <= L.ci.top, "stack overflow"); } }; -- cgit v1.2.3-70-g09d2