summaryrefslogtreecommitdiff
path: root/src/lcorolib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-23 15:14:11 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-23 15:14:11 +0100
commite8a12210e0a5a0d86b5bacfd10e673b36d56fb38 (patch)
tree0f27dc78240054558a1621d804a66f445abf4954 /src/lcorolib.js
parent6482d1ddc52f26d0a8e2e2a398276db73fbaa2bf (diff)
downloadfengari-e8a12210e0a5a0d86b5bacfd10e673b36d56fb38.tar.gz
fengari-e8a12210e0a5a0d86b5bacfd10e673b36d56fb38.tar.bz2
fengari-e8a12210e0a5a0d86b5bacfd10e673b36d56fb38.zip
coroutine.wrap
Diffstat (limited to 'src/lcorolib.js')
-rw-r--r--src/lcorolib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lcorolib.js b/src/lcorolib.js
index 32532a6..05f3b00 100644
--- a/src/lcorolib.js
+++ b/src/lcorolib.js
@@ -62,7 +62,7 @@ const luaB_coresume = function(L) {
};
const luaB_auxwrap = function(L) {
- let co = lapi.lua_tothread(L, lapi.lua_upvalueindex(1));
+ 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? */