From c0308f2401694031b1b09cbd5d8fb3f9312054f2 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 29 Mar 2018 02:36:11 +1100 Subject: src/defs.js: LUA_VERSUFFIX should only be defined in lualib --- src/loadlib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/loadlib.js') diff --git a/src/loadlib.js b/src/loadlib.js index aa7a372..fce3d57 100644 --- a/src/loadlib.js +++ b/src/loadlib.js @@ -11,7 +11,6 @@ const { LUA_REGISTRYINDEX, LUA_TNIL, LUA_TTABLE, - LUA_VERSUFFIX, lua_callk, lua_createtable, lua_getfield, @@ -62,6 +61,7 @@ const { luaL_pushresult, luaL_setfuncs } = require('./lauxlib.js'); +const lualib = require('./lualib.js'); const { luastring_indexOf, to_jsstring, @@ -281,7 +281,7 @@ const env = (function() { ** Set a path */ const setpath = function(L, fieldname, envname, dft) { - let nver = `${envname}${LUA_VERSUFFIX}`; + let nver = `${envname}${lualib.LUA_VERSUFFIX}`; lua_pushstring(L, to_luastring(nver)); let path = env[nver]; /* use versioned name */ if (path === undefined) /* no environment variable? */ -- cgit v1.2.3-54-g00ecf