aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/loadlib.js4
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);