summaryrefslogtreecommitdiff
path: root/src/lcorolib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-29 02:31:22 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-29 02:44:44 +1100
commit1371afafae9144b30475262f06940c4057485d02 (patch)
tree1df4d0ffcd1f3dadb8942646533b779df8e8a4a4 /src/lcorolib.js
parentc93673f0af0ebdc5165cf0acc340f65b6c6fa786 (diff)
downloadfengari-1371afafae9144b30475262f06940c4057485d02.tar.gz
fengari-1371afafae9144b30475262f06940c4057485d02.tar.bz2
fengari-1371afafae9144b30475262f06940c4057485d02.zip
src/: Pass js strings to auxlib functions such as luaL_argcheck
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 a72d22b..321331b 100644
--- a/src/lcorolib.js
+++ b/src/lcorolib.js
@@ -5,7 +5,7 @@ const lauxlib = require('./lauxlib.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, "thread expected");
return co;
};