From e8a12210e0a5a0d86b5bacfd10e673b36d56fb38 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 23 Feb 2017 15:14:11 +0100 Subject: coroutine.wrap --- src/lcorolib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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? */ -- cgit v1.2.3-70-g09d2