From 46049c9df73a446192957af1f50df19167c79f07 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 26 Apr 2017 17:15:37 +1000 Subject: Remove lua.CT and lua.constant_types (still available from defs) --- tests/lapi.js | 1 - tests/lbaselib.js | 1 - tests/lcorolib.js | 1 - tests/lmathlib.js | 1 - tests/load.js | 1 - tests/ltablib.js | 1 - tests/manual-tests/lua-cli.js | 2 +- 7 files changed, 1 insertion(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/lapi.js b/tests/lapi.js index 28f8887..68e8f7e 100644 --- a/tests/lapi.js +++ b/tests/lapi.js @@ -13,7 +13,6 @@ const lapi = require("../src/lapi.js"); const lauxlib = require("../src/lauxlib.js"); const lua = require('../src/lua.js'); const linit = require('../src/linit.js'); -const CT = lua.constant_types; test('luaL_newstate, lua_pushnil, luaL_typename', function (t) { let L; diff --git a/tests/lbaselib.js b/tests/lbaselib.js index cc7847e..646f900 100644 --- a/tests/lbaselib.js +++ b/tests/lbaselib.js @@ -13,7 +13,6 @@ const lapi = require("../src/lapi.js"); const lauxlib = require("../src/lauxlib.js"); const lua = require('../src/lua.js'); const linit = require('../src/linit.js'); -const CT = lua.constant_types; test('print', function (t) { let luaCode = ` diff --git a/tests/lcorolib.js b/tests/lcorolib.js index d97e681..3a778d4 100644 --- a/tests/lcorolib.js +++ b/tests/lcorolib.js @@ -14,7 +14,6 @@ const lauxlib = require("../src/lauxlib.js"); const lua = require('../src/lua.js'); const linit = require('../src/linit.js'); const lstate = require('../src/lstate.js'); -const CT = lua.constant_types; test('coroutine.create, coroutine.yield, coroutine.resume', function (t) { diff --git a/tests/lmathlib.js b/tests/lmathlib.js index 339718c..30c33d8 100644 --- a/tests/lmathlib.js +++ b/tests/lmathlib.js @@ -14,7 +14,6 @@ const lauxlib = require("../src/lauxlib.js"); const lua = require('../src/lua.js'); const linit = require('../src/linit.js'); const lstate = require('../src/lstate.js'); -const CT = lua.constant_types; test('math.abs, math.sin, math.cos, math.tan, math.asin, math.acos, math.atan', function (t) { diff --git a/tests/load.js b/tests/load.js index 839a962..913fb01 100644 --- a/tests/load.js +++ b/tests/load.js @@ -11,7 +11,6 @@ const lapi = require("../src/lapi.js"); const lauxlib = require("../src/lauxlib.js"); const lua = require('../src/lua.js'); const linit = require('../src/linit.js'); -const CT = lua.constant_types; test('luaL_loadstring', function (t) { diff --git a/tests/ltablib.js b/tests/ltablib.js index cb7b064..f7de2bf 100644 --- a/tests/ltablib.js +++ b/tests/ltablib.js @@ -14,7 +14,6 @@ const lauxlib = require("../src/lauxlib.js"); const lua = require('../src/lua.js'); const linit = require('../src/linit.js'); const lstate = require('../src/lstate.js'); -const CT = lua.constant_types; const inttable2array = function(t) { let a = []; diff --git a/tests/manual-tests/lua-cli.js b/tests/manual-tests/lua-cli.js index f11e833..322a963 100755 --- a/tests/manual-tests/lua-cli.js +++ b/tests/manual-tests/lua-cli.js @@ -193,7 +193,7 @@ for (let i = 1; i < script; i++) { } const pushargs = function(L) { - if (lapi.lua_getglobal(L, lua.to_luastring("arg")) !== lua.constant_types.LUA_TTABLE) + if (lapi.lua_getglobal(L, lua.to_luastring("arg")) !== lua.LUA_TTABLE) lauxlib.luaL_error(L, lua.to_luastring("'arg' is not a table")); let n = lauxlib.luaL_len(L, -1); lauxlib.luaL_checkstack(L, n+3, lua.to_luastring("too many arguments to script")); -- cgit v1.2.3-70-g09d2