From e7cf17565e26dc5c4a100688526b0dfed1220e44 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 11 May 2017 14:02:23 +1000 Subject: Move luaL_openlibs from lauxlib to lualib --- tests/manual-tests/debug-cli.js | 7 ++++--- tests/manual-tests/lua-cli.js | 4 +++- 2 files changed, 7 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 2487a84..0bedf50 100644 --- a/tests/manual-tests/debug-cli.js +++ b/tests/manual-tests/debug-cli.js @@ -1,7 +1,8 @@ "use strict"; -const lauxlib = require("../../src/lauxlib.js"); -const lua = require('../../src/lua.js'); +const lua = require('../../src/lua.js'); +const lauxlib = require('../../src/lauxlib.js'); +const lualib = require('../../src/lualib.js'); let luaCode = ` a = "debug me" @@ -10,7 +11,7 @@ let luaCode = ` L = lauxlib.luaL_newstate(); -lauxlib.luaL_openlibs(L); +lualib.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 378b5f7..a518745 100755 --- a/tests/manual-tests/lua-cli.js +++ b/tests/manual-tests/lua-cli.js @@ -5,6 +5,8 @@ global.WEB = false; const lua = require('../../src/lua.js'); const lauxlib = require('../../src/lauxlib.js'); +const lualib = require('../../src/lualib.js'); + const readlineSync = require('readline-sync'); const stdin = lua.to_luastring("=stdin"); @@ -158,7 +160,7 @@ if (has_E) { } /* open standard libraries */ -lauxlib.luaL_openlibs(L); +lualib.luaL_openlibs(L); /* create table 'arg' */ lua.lua_createtable(L, process.argv.length - (script + 1), script + 1); -- cgit v1.2.3-70-g09d2