From 57a5514f724ee5d31ee6c008954d207da0a6f245 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Mon, 8 May 2017 11:03:21 +0200 Subject: Fixed bad default separator in table.concat --- src/ltablib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ltablib.js b/src/ltablib.js index 788e236..aaadfd7 100644 --- a/src/ltablib.js +++ b/src/ltablib.js @@ -130,7 +130,7 @@ const tmove = function(L) { const tconcat = function(L) { let last = aux_getn(L, 1, TAB_R); - let sep = lauxlib.luaL_optlstring(L, 2, ""); + let sep = lauxlib.luaL_optlstring(L, 2, []); let i = lauxlib.luaL_optinteger(L, 3, 1); last = lauxlib.luaL_optinteger(L, 4, last); -- cgit v1.2.3-70-g09d2