From 98ca74b0d55cef6a019612057b842e71f82435f6 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 27 Sep 2017 22:40:44 +1000 Subject: src/loadlib.js: Declare forgotten argument seeglb --- src/loadlib.js | 4 ++-- 1 file 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); -- cgit v1.2.3-70-g09d2