diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-18 04:34:37 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-18 07:07:41 +1100 |
commit | 15f6a164001c629ec0e8a4d2031ece8b94298780 (patch) | |
tree | e0b98cdad831f84af9a56a4b371ee06fd3c90379 | |
parent | 214dcf73833f7a29c58eef2b85d68ee3277039f0 (diff) | |
download | fengari-15f6a164001c629ec0e8a4d2031ece8b94298780.tar.gz fengari-15f6a164001c629ec0e8a4d2031ece8b94298780.tar.bz2 fengari-15f6a164001c629ec0e8a4d2031ece8b94298780.zip |
src/lapi.js: Don't export index2addr
-rw-r--r-- | src/lapi.js | 2 | ||||
-rw-r--r-- | tests/lexparse.js | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/lapi.js b/src/lapi.js index 29f70bb..5f5bb3d 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -1106,8 +1106,6 @@ const lua_getextraspace = function () { return 0; }; -module.exports.index2addr = index2addr; -module.exports.index2addr_ = index2addr_; module.exports.lua_absindex = lua_absindex; module.exports.lua_arith = lua_arith; module.exports.lua_atpanic = lua_atpanic; diff --git a/tests/lexparse.js b/tests/lexparse.js index 57aaa22..e9087ee 100644 --- a/tests/lexparse.js +++ b/tests/lexparse.js @@ -5,7 +5,6 @@ const test = require('tape'); const lua = require('../src/lua.js'); const lauxlib = require('../src/lauxlib.js'); const lualib = require('../src/lualib.js'); -const lapi = require('../src/lapi.js'); const lstring = require("../src/lstring.js"); const {to_luastring} = require("../src/fengaricore.js"); @@ -199,7 +198,7 @@ test('NEWTABLE', function (t) { }, "Lua program ran without error"); t.ok( - L.stack[lapi.index2addr_(L, -1)].ttistable(), + lua.lua_type(L, -1) === lua.LUA_TTABLE, "Program output is correct" ); }); |