diff options
author | daurnimator <quae@daurnimator.com> | 2017-09-27 22:40:44 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-09-27 22:40:44 +1000 |
commit | 98ca74b0d55cef6a019612057b842e71f82435f6 (patch) | |
tree | ebed86ac12f20ba9b16b0e5d8244413bf80d47f6 /src/loadlib.js | |
parent | 539c4d254c75165a51d4a9cfd2a05342f503516a (diff) | |
download | fengari-98ca74b0d55cef6a019612057b842e71f82435f6.tar.gz fengari-98ca74b0d55cef6a019612057b842e71f82435f6.tar.bz2 fengari-98ca74b0d55cef6a019612057b842e71f82435f6.zip |
src/loadlib.js: Declare forgotten argument seeglb
Diffstat (limited to 'src/loadlib.js')
-rw-r--r-- | src/loadlib.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loadlib.js b/src/loadlib.js index da60d0b..51e0279 100644 --- a/src/loadlib.js +++ b/src/loadlib.js @@ -36,7 +36,7 @@ const AUXMARK = [1]; */ let lsys_load; if (WEB) { - lsys_load = function(L, path) { + lsys_load = function(L, path, seeglb) { let xhr = new XMLHttpRequest(); xhr.open("GET", lua.to_jsstring(path), false); xhr.send(); @@ -58,7 +58,7 @@ if (WEB) { }; } else { const pathlib = require('path'); - lsys_load = function(L, path) { + lsys_load = function(L, path, seeglb) { path = lua.to_jsstring(path); /* relative paths should be relative to cwd, not this js file */ path = pathlib.resolve(process.cwd(), path); |