aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lapi.js1
-rw-r--r--tests/lbaselib.js1
-rw-r--r--tests/lcorolib.js1
-rw-r--r--tests/lmathlib.js1
-rw-r--r--tests/load.js1
-rw-r--r--tests/ltablib.js1
-rwxr-xr-xtests/manual-tests/lua-cli.js2
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"));