summaryrefslogtreecommitdiff
path: root/tests/ldblib.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ldblib.js')
-rw-r--r--tests/ldblib.js19
1 files changed, 9 insertions, 10 deletions
diff --git a/tests/ldblib.js b/tests/ldblib.js
index 06ad4b3..83d0743 100644
--- a/tests/ldblib.js
+++ b/tests/ldblib.js
@@ -4,7 +4,6 @@ const test = require('tape');
const lauxlib = require("../src/lauxlib.js");
const lua = require('../src/lua.js');
-const linit = require('../src/linit.js');
test('debug.sethook', function (t) {
let luaCode = `
@@ -29,7 +28,7 @@ test('debug.sethook', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -73,7 +72,7 @@ test('debug.gethook', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -133,7 +132,7 @@ test('debug.getlocal', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -181,7 +180,7 @@ test('debug.setlocal', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -236,7 +235,7 @@ test('debug.upvalueid', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -280,7 +279,7 @@ test('debug.upvaluejoin', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -325,7 +324,7 @@ test('debug.traceback (with a global)', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
luaCode = lua.to_luastring(luaCode);
lauxlib.luaL_loadbuffer(L, luaCode, luaCode.length, lua.to_luastring("traceback-test"));
@@ -384,7 +383,7 @@ test('debug.traceback (with a upvalue)', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
luaCode = lua.to_luastring(luaCode);
lauxlib.luaL_loadbuffer(L, luaCode, luaCode.length, lua.to_luastring("traceback-test"));
@@ -438,7 +437,7 @@ test('debug.getinfo', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
luaCode = lua.to_luastring(luaCode);
lauxlib.luaL_loadbuffer(L, luaCode, luaCode.length, lua.to_luastring("getinfo-test"));