summaryrefslogtreecommitdiff
path: root/src/lcorolib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 18:28:30 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 18:32:07 +1000
commitcc035ba6ef2ecf3884c12c2af8ad4e5fd6616f0f (patch)
tree2832ff0d9ea13b3fa2224eee24810889998f1975 /src/lcorolib.js
parent99eec25ab0ca2d4722c4d54eccc57cffe2d3b370 (diff)
downloadfengari-cc035ba6ef2ecf3884c12c2af8ad4e5fd6616f0f.tar.gz
fengari-cc035ba6ef2ecf3884c12c2af8ad4e5fd6616f0f.tar.bz2
fengari-cc035ba6ef2ecf3884c12c2af8ad4e5fd6616f0f.zip
Export ldo.js functions from lua.js
Diffstat (limited to 'src/lcorolib.js')
-rw-r--r--src/lcorolib.js7
1 files changed, 3 insertions, 4 deletions
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;
};