From 6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 26 Apr 2017 21:47:54 +1000 Subject: Export luaL_openlibs from lauxlib.js --- tests/manual-tests/debug-cli.js | 3 +-- tests/manual-tests/lua-cli.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/manual-tests') diff --git a/tests/manual-tests/debug-cli.js b/tests/manual-tests/debug-cli.js index e6e5198..2487a84 100644 --- a/tests/manual-tests/debug-cli.js +++ b/tests/manual-tests/debug-cli.js @@ -2,7 +2,6 @@ const lauxlib = require("../../src/lauxlib.js"); const lua = require('../../src/lua.js'); -const linit = require('../../src/linit.js'); let luaCode = ` a = "debug me" @@ -11,7 +10,7 @@ let luaCode = ` L = lauxlib.luaL_newstate(); -linit.luaL_openlibs(L); +lauxlib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); diff --git a/tests/manual-tests/lua-cli.js b/tests/manual-tests/lua-cli.js index 468395f..34b6232 100755 --- a/tests/manual-tests/lua-cli.js +++ b/tests/manual-tests/lua-cli.js @@ -3,7 +3,6 @@ const lua = require('../../src/lua.js'); const lauxlib = require('../../src/lauxlib.js'); -const linit = require('../../src/linit.js'); const fs = require('fs'); const readlineSync = require('readline-sync'); @@ -141,7 +140,7 @@ if (has_E) { } /* open standard libraries */ -linit.luaL_openlibs(L); +lauxlib.luaL_openlibs(L); /* create table 'arg' */ lua.lua_createtable(L, process.argv.length - (script + 1), script + 1); -- cgit v1.2.3-70-g09d2