summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/manual-tests/lua-cli.js2
1 files changed, 1 insertions, 1 deletions
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