diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-15 19:16:25 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-15 19:16:25 +1000 |
commit | b22283e31b68bb3d558c962b4eac2321c526c9c2 (patch) | |
tree | 72e6234982d94452360c6160c2119b725c5f858d /tests | |
parent | 4a0aa6eecf10432453c22031c247cf24819f1040 (diff) | |
download | fengari-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-x | tests/manual-tests/lua-cli.js | 2 |
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 |