aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-15 19:16:25 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-15 19:16:25 +1000
commitb22283e31b68bb3d558c962b4eac2321c526c9c2 (patch)
tree72e6234982d94452360c6160c2119b725c5f858d /tests
parent4a0aa6eecf10432453c22031c247cf24819f1040 (diff)
downloadfengari-b22283e31b68bb3d558c962b4eac2321c526c9c2.tar.gz
fengari-b22283e31b68bb3d558c962b4eac2321c526c9c2.tar.bz2
fengari-b22283e31b68bb3d558c962b4eac2321c526c9c2.zip
tests/manual-tests/lua-cli.js: Add missing lua.to_luastring call in msghandler
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