summaryrefslogtreecommitdiff
path: root/src/linit.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 21:47:54 +1000
committerBenoit Giannangeli <giann008@gmail.com>2017-04-26 14:00:02 +0200
commit6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2 (patch)
treed60c55ad8a4621f1a339e6f240675bd32059b347 /src/linit.js
parentf93607f954c002b251fba4e0b85493e0b2b619b4 (diff)
downloadfengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.tar.gz
fengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.tar.bz2
fengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.zip
Export luaL_openlibs from lauxlib.js
Diffstat (limited to 'src/linit.js')
-rw-r--r--src/linit.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linit.js b/src/linit.js
index 925b55a..325dfa1 100644
--- a/src/linit.js
+++ b/src/linit.js
@@ -1,7 +1,6 @@
"use strict";
const lua = require('./lua.js');
-const lapi = require('./lapi.js');
const lauxlib = require('./lauxlib.js');
const lbaselib = require('./lbaselib.js');
const lcorolib = require('./lcorolib.js');
@@ -30,7 +29,7 @@ const luaL_openlibs = function(L) {
/* "require" functions from 'loadedlibs' and set results to global table */
for (let lib in loadedlibs) {
lauxlib.luaL_requiref(L, lua.to_luastring(lib), loadedlibs[lib], 1);
- lapi.lua_pop(L, 1); /* remove lib */
+ lua.lua_pop(L, 1); /* remove lib */
}
};