From 1371afafae9144b30475262f06940c4057485d02 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 29 Dec 2017 02:31:22 +1100 Subject: src/: Pass js strings to auxlib functions such as luaL_argcheck --- src/lcorolib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lcorolib.js') 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; }; -- cgit v1.2.3-54-g00ecf