diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-10 02:08:53 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-10 02:36:36 +1100 |
commit | 562ad6f874564c3770d096711f443b49f59ef686 (patch) | |
tree | 910d919dcee89c71eaeeec8465152add19dc4e9f /src/lauxlib.js | |
parent | 54c4a6a66778466630cca7a9223c760942c7ab70 (diff) | |
download | fengari-562ad6f874564c3770d096711f443b49f59ef686.tar.gz fengari-562ad6f874564c3770d096711f443b49f59ef686.tar.bz2 fengari-562ad6f874564c3770d096711f443b49f59ef686.zip |
src/: Fix some linter complaints
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r-- | src/lauxlib.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js index f95f9a8..0c42a05 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -493,13 +493,14 @@ const luaL_tolstring = function(L, idx) { case lua.LUA_TNIL: lua.lua_pushliteral(L, "nil"); break; - default: + default: { let tt = luaL_getmetafield(L, idx, lua.to_luastring("__name", true)); let kind = tt === lua.LUA_TSTRING ? lua.lua_tostring(L, -1) : luaL_typename(L, idx); lua.lua_pushfstring(L, lua.to_luastring("%s: %p"), kind, lua.lua_topointer(L, idx)); if (tt !== lua.LUA_TNIL) lua.lua_remove(L, -2); break; + } } } |