diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-29 02:31:22 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-29 02:44:44 +1100 |
commit | 1371afafae9144b30475262f06940c4057485d02 (patch) | |
tree | 1df4d0ffcd1f3dadb8942646533b779df8e8a4a4 /src/lcorolib.js | |
parent | c93673f0af0ebdc5165cf0acc340f65b6c6fa786 (diff) | |
download | fengari-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.js | 2 |
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; }; |