From aa6a466bea35db093a0131dce0612a4de428306c Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 17 Feb 2018 10:45:05 +1100 Subject: src/defs.js: CPATH contains .js not .dll/.so Closes #111 --- src/defs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/defs.js b/src/defs.js index 70d0c73..f17c65c 100644 --- a/src/defs.js +++ b/src/defs.js @@ -395,9 +395,9 @@ if (typeof process === "undefined") { module.exports.LUA_PATH_DEFAULT = LUA_PATH_DEFAULT; const LUA_CPATH_DEFAULT = to_luastring( - LUA_CDIR + "?.dll;" + - LUA_CDIR + "..\\lib\\lua\\" + LUA_VDIR + "\\?.dll;" + - LUA_CDIR + "loadall.dll;.\\?.dll" + LUA_CDIR + "?.js;" + + LUA_CDIR + "..\\lib\\lua\\" + LUA_VDIR + "\\?.js;" + + LUA_CDIR + "loadall.js;.\\?.js" ); module.exports.LUA_CPATH_DEFAULT = LUA_CPATH_DEFAULT; } else { @@ -421,7 +421,7 @@ if (typeof process === "undefined") { module.exports.LUA_PATH_DEFAULT = LUA_PATH_DEFAULT; const LUA_CPATH_DEFAULT = to_luastring( - LUA_CDIR + "?.so;" + LUA_CDIR + "loadall.so;./?.so" + LUA_CDIR + "?.js;" + LUA_CDIR + "loadall.js;./?.js" ); module.exports.LUA_CPATH_DEFAULT = LUA_CPATH_DEFAULT; } -- cgit v1.2.3-70-g09d2