From 15f6a164001c629ec0e8a4d2031ece8b94298780 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 18 Jan 2018 04:34:37 +1100 Subject: src/lapi.js: Don't export index2addr --- tests/lexparse.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') 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" ); }); -- cgit v1.2.3-70-g09d2