diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-26 21:47:54 +1000 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-04-26 14:00:02 +0200 |
commit | 6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2 (patch) | |
tree | d60c55ad8a4621f1a339e6f240675bd32059b347 /tests/lutf8lib.js | |
parent | f93607f954c002b251fba4e0b85493e0b2b619b4 (diff) | |
download | fengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.tar.gz fengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.tar.bz2 fengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.zip |
Export luaL_openlibs from lauxlib.js
Diffstat (limited to 'tests/lutf8lib.js')
-rw-r--r-- | tests/lutf8lib.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/lutf8lib.js b/tests/lutf8lib.js index 4df498c..9449a93 100644 --- a/tests/lutf8lib.js +++ b/tests/lutf8lib.js @@ -5,7 +5,6 @@ const tests = require("./tests.js"); const lua = require("../src/lua.js"); const lauxlib = require("../src/lauxlib.js"); -const linit = require('../src/linit.js'); test('utf8.offset', function (t) { let luaCode = ` @@ -18,7 +17,7 @@ test('utf8.offset', function (t) { L = lauxlib.luaL_newstate(); - linit.luaL_openlibs(L); + lauxlib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -50,7 +49,7 @@ test('utf8.codepoint', function (t) { L = lauxlib.luaL_newstate(); - linit.luaL_openlibs(L); + lauxlib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -94,7 +93,7 @@ test('utf8.char', function (t) { L = lauxlib.luaL_newstate(); - linit.luaL_openlibs(L); + lauxlib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -126,7 +125,7 @@ test('utf8.len', function (t) { L = lauxlib.luaL_newstate(); - linit.luaL_openlibs(L); + lauxlib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -163,7 +162,7 @@ test('utf8.codes', function (t) { L = lauxlib.luaL_newstate(); - linit.luaL_openlibs(L); + lauxlib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); |