aboutsummaryrefslogtreecommitdiff
path: root/tests/ldebug.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 /tests/ldebug.js
parentf93607f954c002b251fba4e0b85493e0b2b619b4 (diff)
downloadfengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.tar.gz
fengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.tar.bz2
fengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.zip
Export luaL_openlibs from lauxlib.js
Diffstat (limited to 'tests/ldebug.js')
-rw-r--r--tests/ldebug.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/ldebug.js b/tests/ldebug.js
index bee5cd6..dd1ec54 100644
--- a/tests/ldebug.js
+++ b/tests/ldebug.js
@@ -10,7 +10,6 @@ const toByteCode = tests.toByteCode;
const lvm = require("../src/lvm.js");
const lauxlib = require("../src/lauxlib.js");
const lua = require('../src/lua.js');
-const linit = require('../src/linit.js');
test('luaG_typeerror', function (t) {
let luaCode = `
@@ -26,7 +25,7 @@ test('luaG_typeerror', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lua.lua_load(L, null, bc, lua.to_luastring("test-typeerror"), lua.to_luastring("binary"));
@@ -56,7 +55,7 @@ test('luaG_typeerror', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lua.lua_load(L, null, bc, lua.to_luastring("test-typeerror"), lua.to_luastring("binary"));
@@ -85,7 +84,7 @@ test('luaG_typeerror', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lua.lua_load(L, null, bc, lua.to_luastring("test-typeerror"), lua.to_luastring("binary"));
@@ -114,7 +113,7 @@ test('luaG_typeerror', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lua.lua_load(L, null, bc, lua.to_luastring("test-typeerror"), lua.to_luastring("binary"));
@@ -142,7 +141,7 @@ test('luaG_concaterror', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lua.lua_load(L, null, bc, lua.to_luastring("test-typeerror"), lua.to_luastring("binary"));
@@ -170,7 +169,7 @@ test('luaG_opinterror', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lua.lua_load(L, null, bc, lua.to_luastring("test-typeerror"), lua.to_luastring("binary"));
@@ -198,7 +197,7 @@ test('luaG_tointerror', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lua.lua_load(L, null, bc, lua.to_luastring("test-typeerror"), lua.to_luastring("binary"));