summaryrefslogtreecommitdiff
path: root/src/lcorolib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lcorolib.js')
-rw-r--r--src/lcorolib.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lcorolib.js b/src/lcorolib.js
index a72d22b..bcdae8b 100644
--- a/src/lcorolib.js
+++ b/src/lcorolib.js
@@ -2,10 +2,11 @@
const lua = require('./lua.js');
const lauxlib = require('./lauxlib.js');
+const {to_luastring} = require("./fengaricore.js");
const getco = function(L) {
let co = lua.lua_tothread(L, 1);
- lauxlib.luaL_argcheck(L, co, 1, lua.to_luastring("thread expected", true));
+ lauxlib.luaL_argcheck(L, co, 1, to_luastring("thread expected", true));
return co;
};