diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/loadlib.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/loadlib.js b/src/loadlib.js index ecb5cd2..641948f 100644 --- a/src/loadlib.js +++ b/src/loadlib.js @@ -175,7 +175,8 @@ const ll_loadlib = function(L) { ** Set a path */ const setpath = function(L, fieldname, envname, dft) { - let nver = lua.lua_pushstring(L, lua.to_luastring(`${envname}${lua.LUA_VERSUFFIX}`, true)); + let nver = `${envname}${lua.LUA_VERSUFFIX}`; + lua.lua_pushstring(L, lua.to_luastring(nver)); let path = process.env[nver]; /* use versioned name */ if (path === undefined) /* no environment variable? */ path = process.env[envname]; /* try unversioned name */ |