From 4034ef458697729d1a8a25058b43272ae5882ce2 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 23 May 2017 18:03:35 +1000 Subject: src/lapi.js: Fix incorrect argument to luaS_newliteral in lua_concat --- src/lapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lapi.js b/src/lapi.js index e9994f5..a1dc542 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) { - lobject.setsvalue2s(L, L.top, lstring.luaS_newliteral(L, [])); + lobject.setsvalue2s(L, L.top, lstring.luaS_bless(L, [])); L.top++; assert(L.top <= L.ci.top, "stack overflow"); } -- cgit v1.2.3-70-g09d2