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) --- src/lmathlib.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lmathlib.js') diff --git a/src/lmathlib.js b/src/lmathlib.js index fd18711..149bebd 100644 --- a/src/lmathlib.js +++ b/src/lmathlib.js @@ -11,7 +11,6 @@ const ldo = require('./ldo.js'); const ldebug = require('./ldebug.js'); const llimit = require('./llimit.js'); const luaconf = require('./luaconf.js'); -const CT = lua.constant_types; const TS = lua.thread_status; var RNG = seedrandom(); @@ -195,7 +194,7 @@ const math_max = function(L) { }; const math_type = function(L) { - if (lapi.lua_type(L, 1) === CT.LUA_TNUMBER) { + if (lapi.lua_type(L, 1) === lua.LUA_TNUMBER) { if (lapi.lua_isinteger(L, 1)) lapi.lua_pushliteral(L, "integer"); else -- cgit v1.2.3-54-g00ecf