From b22283e31b68bb3d558c962b4eac2321c526c9c2 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 15 May 2017 19:16:25 +1000 Subject: tests/manual-tests/lua-cli.js: Add missing lua.to_luastring call in msghandler --- tests/manual-tests/lua-cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/manual-tests') diff --git a/tests/manual-tests/lua-cli.js b/tests/manual-tests/lua-cli.js index a518745..deadee7 100755 --- a/tests/manual-tests/lua-cli.js +++ b/tests/manual-tests/lua-cli.js @@ -24,7 +24,7 @@ const report = function(L, status) { const msghandler = function(L) { let msg = lua.lua_tostring(L, 1); if (msg === null) { /* is error object not a string? */ - if (lauxlib.luaL_callmeta(L, 1, "__tostring") && /* does it have a metamethod */ + if (lauxlib.luaL_callmeta(L, 1, lua.to_luastring("__tostring")) && /* does it have a metamethod */ lua.lua_type(L, -1) == lua.LUA_TSTRING) /* that produces a string? */ return 1; /* that is the message */ else -- cgit v1.2.3-54-g00ecf