aboutsummaryrefslogtreecommitdiff
path: root/src/lcorolib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-03-29 11:57:43 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-03-29 14:37:07 +0200
commit2e5b595a2e04fe72555a565af4aae43560946473 (patch)
tree750e770114181283acb0fd78f7ad241c17c3d9a7 /src/lcorolib.js
parent36f3247d47c1ad854fa89aabf17f6d954a6a6657 (diff)
downloadfengari-2e5b595a2e04fe72555a565af4aae43560946473.tar.gz
fengari-2e5b595a2e04fe72555a565af4aae43560946473.tar.bz2
fengari-2e5b595a2e04fe72555a565af4aae43560946473.zip
Never use js strings internally
Diffstat (limited to 'src/lcorolib.js')
-rw-r--r--src/lcorolib.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lcorolib.js b/src/lcorolib.js
index b2d0de8..58d061c 100644
--- a/src/lcorolib.js
+++ b/src/lcorolib.js
@@ -8,12 +8,13 @@ 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');
const CT = lua.constant_types;
const TS = lua.thread_status;
const getco = function(L) {
let co = lapi.lua_tothread(L, 1);
- lauxlib.luaL_argcheck(L, co, 1, "thread expected");
+ lauxlib.luaL_argcheck(L, co, 1, lua.to_luastring("thread expected"));
return co;
};
@@ -146,4 +147,4 @@ const luaopen_coroutine = function(L) {
return 1;
};
-module.exports.luaopen_coroutine = luaopen_coroutine; \ No newline at end of file
+module.exports.luaopen_coroutine = luaopen_coroutine;