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/test-suite/events.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/test-suite/events.js') diff --git a/tests/test-suite/events.js b/tests/test-suite/events.js index 3c9a590..d7dfe15 100644 --- a/tests/test-suite/events.js +++ b/tests/test-suite/events.js @@ -4,8 +4,9 @@ const test = require('tape'); global.WEB = false; -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'); test("[test-suite] events: testing metatable", function (t) { @@ -188,7 +189,7 @@ test("[test-suite] events: testing metatable", function (t) { L = lauxlib.luaL_newstate(); - lauxlib.luaL_openlibs(L); + lualib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -222,7 +223,7 @@ test("[test-suite] events: test for rawlen", function (t) { L = lauxlib.luaL_newstate(); - lauxlib.luaL_openlibs(L); + lualib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -283,7 +284,7 @@ test("[test-suite] events: test comparison", function (t) { L = lauxlib.luaL_newstate(); - lauxlib.luaL_openlibs(L); + lualib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); -- cgit v1.2.3-54-g00ecf