diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-26 18:25:07 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-26 18:25:07 +1000 |
commit | 99eec25ab0ca2d4722c4d54eccc57cffe2d3b370 (patch) | |
tree | 490cde5ae4a2acffa897e5d8e0a3b0327d1e9777 /src/lcorolib.js | |
parent | b5f52154a498452ffede27368211e14962715423 (diff) | |
download | fengari-99eec25ab0ca2d4722c4d54eccc57cffe2d3b370.tar.gz fengari-99eec25ab0ca2d4722c4d54eccc57cffe2d3b370.tar.bz2 fengari-99eec25ab0ca2d4722c4d54eccc57cffe2d3b370.zip |
Export ldebug.js functions from lua.js
Diffstat (limited to 'src/lcorolib.js')
-rw-r--r-- | src/lcorolib.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lcorolib.js b/src/lcorolib.js index baf7254..af1a3ec 100644 --- a/src/lcorolib.js +++ b/src/lcorolib.js @@ -5,7 +5,6 @@ const assert = require('assert'); const lua = require('./lua.js'); const lauxlib = require('./lauxlib.js'); const ldo = require('./ldo.js'); -const ldebug = require('./ldebug.js'); const lobject = require('./lobject.js'); const getco = function(L) { @@ -101,7 +100,7 @@ const luaB_costatus = function(L) { break; case lua.LUA_OK: { let ar = new lua.lua_Debug(); - if (ldebug.lua_getstack(co, 0, ar) > 0) /* does it have frames? */ + if (lua.lua_getstack(co, 0, ar) > 0) /* does it have frames? */ lua.lua_pushliteral(L, "normal"); /* it is running */ else if (lua.lua_gettop(co) === 0) lua.lua_pushliteral(L, "dead"); |