diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-12 15:03:48 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-13 15:03:56 +1100 |
commit | 75b13045f938dd66069cae34643bab2deafe2138 (patch) | |
tree | 87437e4b9671fd7f738ab892b0f70c3174802d47 /src | |
parent | e438f10592077f8b5432f67ef72a8f1bfbbcdc49 (diff) | |
download | fengari-75b13045f938dd66069cae34643bab2deafe2138.tar.gz fengari-75b13045f938dd66069cae34643bab2deafe2138.tar.bz2 fengari-75b13045f938dd66069cae34643bab2deafe2138.zip |
src/loadlib.js: Do a concatenation in js string form rather than concating arrays
Diffstat (limited to 'src')
-rw-r--r-- | src/loadlib.js | 4 |
1 files changed, 1 insertions, 3 deletions
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' */ |