summaryrefslogtreecommitdiff
path: root/src/lcorolib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 17:15:37 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 17:21:52 +1000
commit46049c9df73a446192957af1f50df19167c79f07 (patch)
treee055ff69c29a6faf8aec40cd2dc47bb5e245ce05 /src/lcorolib.js
parentef7bc7c1f8684af04da5d9e91fecf6ce82ecf397 (diff)
downloadfengari-46049c9df73a446192957af1f50df19167c79f07.tar.gz
fengari-46049c9df73a446192957af1f50df19167c79f07.tar.bz2
fengari-46049c9df73a446192957af1f50df19167c79f07.zip
Remove lua.CT and lua.constant_types (still available from defs)
Diffstat (limited to 'src/lcorolib.js')
-rw-r--r--src/lcorolib.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lcorolib.js b/src/lcorolib.js
index b7c4555..a46df98 100644
--- a/src/lcorolib.js
+++ b/src/lcorolib.js
@@ -9,7 +9,6 @@ const lstate = require('./lstate.js');
const ldo = require('./ldo.js');
const ldebug = require('./ldebug.js');
const lobject = require('./lobject.js');
-const CT = lua.constant_types;
const TS = lua.thread_status;
const getco = function(L) {
@@ -65,7 +64,7 @@ const luaB_auxwrap = function(L) {
let co = lapi.lua_tothread(L, lua.lua_upvalueindex(1));
let r = auxresume(L, co, lapi.lua_gettop(L));
if (r < 0) {
- if (lapi.lua_type(L, -1) === CT.LUA_TSTRING) { /* error object is a string? */
+ if (lapi.lua_type(L, -1) === lua.LUA_TSTRING) { /* error object is a string? */
lauxlib.luaL_where(L, 1); /* add extra info */
lapi.lua_insert(L, -2);
lapi.lua_concat(L, 2);
@@ -78,7 +77,7 @@ const luaB_auxwrap = function(L) {
};
const luaB_cocreate = function(L) {
- lauxlib.luaL_checktype(L, 1, CT.LUA_TFUNCTION);
+ lauxlib.luaL_checktype(L, 1, lua.LUA_TFUNCTION);
let NL = lstate.lua_newthread(L);
lapi.lua_pushvalue(L, 1); /* move function to top */
lapi.lua_xmove(L, NL, 1); /* move function from L to NL */