From cc035ba6ef2ecf3884c12c2af8ad4e5fd6616f0f Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 26 Apr 2017 18:28:30 +1000 Subject: Export ldo.js functions from lua.js --- src/lcorolib.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/lcorolib.js') diff --git a/src/lcorolib.js b/src/lcorolib.js index af1a3ec..6238c6c 100644 --- a/src/lcorolib.js +++ b/src/lcorolib.js @@ -4,7 +4,6 @@ const assert = require('assert'); const lua = require('./lua.js'); const lauxlib = require('./lauxlib.js'); -const ldo = require('./ldo.js'); const lobject = require('./lobject.js'); const getco = function(L) { @@ -25,7 +24,7 @@ const auxresume = function(L, co, narg) { } lua.lua_xmove(L, co, narg); - let status = ldo.lua_resume(co, L, narg); + let status = lua.lua_resume(co, L, narg); if (status === lua.LUA_OK || status === lua.LUA_YIELD) { let nres = lua.lua_gettop(co); if (!lua.lua_checkstack(L, nres + 1)) { @@ -87,7 +86,7 @@ const luaB_cowrap = function(L) { }; const luaB_yield = function(L) { - return ldo.lua_yield(L, lua.lua_gettop(L)); + return lua.lua_yield(L, lua.lua_gettop(L)); }; const luaB_costatus = function(L) { @@ -118,7 +117,7 @@ const luaB_costatus = function(L) { }; const luaB_yieldable = function(L) { - lua.lua_pushboolean(L, ldo.lua_isyieldable(L)); + lua.lua_pushboolean(L, lua.lua_isyieldable(L)); return 1; }; -- cgit v1.2.3-54-g00ecf