From 75b13045f938dd66069cae34643bab2deafe2138 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 12 Dec 2017 15:03:48 +1100 Subject: src/loadlib.js: Do a concatenation in js string form rather than concating arrays --- src/loadlib.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/loadlib.js b/src/loadlib.js index bae5db1..9748732 100644 --- a/src/loadlib.js +++ b/src/loadlib.js @@ -210,9 +210,7 @@ const setpath = function(L, fieldname, envname, dft) { L, lua.to_luastring(path), lua.to_luastring(lua.LUA_PATH_SEP + lua.LUA_PATH_SEP, true), - lua.to_luastring(lua.LUA_PATH_SEP, true) - .concat(AUXMARK) - .concat(lua.to_luastring(lua.LUA_PATH_SEP, true)) + lua.to_luastring(lua.LUA_PATH_SEP + lua.to_jsstring(AUXMARK) + lua.LUA_PATH_SEP, true) ); lauxlib.luaL_gsub(L, path, AUXMARK, lua.to_luastring(dft)); lua.lua_remove(L, -2); /* remove result from 1st 'gsub' */ -- cgit v1.2.3-70-g09d2