summaryrefslogtreecommitdiff
path: root/src/lcorolib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 18:11:05 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 18:11:05 +1000
commit031f528d7b7b7c125fee24f1bd35550ebdcc7060 (patch)
tree136959852ab00f1d22a8e66a91f9951bd933d9b3 /src/lcorolib.js
parentb688ef577a10e8b6f2cf948faaa8d1af70c7949c (diff)
downloadfengari-031f528d7b7b7c125fee24f1bd35550ebdcc7060.tar.gz
fengari-031f528d7b7b7c125fee24f1bd35550ebdcc7060.tar.bz2
fengari-031f528d7b7b7c125fee24f1bd35550ebdcc7060.zip
Export lstate.js functions from lua.js
Diffstat (limited to 'src/lcorolib.js')
-rw-r--r--src/lcorolib.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lcorolib.js b/src/lcorolib.js
index 9c05e40..baf7254 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 lstate = require('./lstate.js');
const ldo = require('./ldo.js');
const ldebug = require('./ldebug.js');
const lobject = require('./lobject.js');
@@ -76,7 +75,7 @@ const luaB_auxwrap = function(L) {
const luaB_cocreate = function(L) {
lauxlib.luaL_checktype(L, 1, lua.LUA_TFUNCTION);
- let NL = lstate.lua_newthread(L);
+ let NL = lua.lua_newthread(L);
lua.lua_pushvalue(L, 1); /* move function to top */
lua.lua_xmove(L, NL, 1); /* move function from L to NL */
return 1;