diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-26 17:15:37 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-26 17:21:52 +1000 |
commit | 46049c9df73a446192957af1f50df19167c79f07 (patch) | |
tree | e055ff69c29a6faf8aec40cd2dc47bb5e245ce05 /tests | |
parent | ef7bc7c1f8684af04da5d9e91fecf6ce82ecf397 (diff) | |
download | fengari-46049c9df73a446192957af1f50df19167c79f07.tar.gz fengari-46049c9df73a446192957af1f50df19167c79f07.tar.bz2 fengari-46049c9df73a446192957af1f50df19167c79f07.zip |
Remove lua.CT and lua.constant_types (still available from defs)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lapi.js | 1 | ||||
-rw-r--r-- | tests/lbaselib.js | 1 | ||||
-rw-r--r-- | tests/lcorolib.js | 1 | ||||
-rw-r--r-- | tests/lmathlib.js | 1 | ||||
-rw-r--r-- | tests/load.js | 1 | ||||
-rw-r--r-- | tests/ltablib.js | 1 | ||||
-rwxr-xr-x | tests/manual-tests/lua-cli.js | 2 |
7 files changed, 1 insertions, 7 deletions
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")); |