You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case where a table has a metatable with an __init function that will always return a new table instance for a key value, hs.inspect will throw an error upon encountering the new table instance because it wasn't encountered in the first pass. Essentially, it just needs to handle the case where it has not logged it in tableAppearances before.
I've put a test case in the pull request which will accompany this issue shortly.
The text was updated successfully, but these errors were encountered:
randomeizer
changed the title
Bug in hs.inspect when dealing with tables with complex __init event functions.
Bug in hs.inspect when dealing with tables with complex __init metatable event functions.
Jul 19, 2018
randomeizer
added a commit
to randomeizer/hammerspoon
that referenced
this issue
Jul 19, 2018
In the case where a
table
has a metatable with an__init
function that will always return a new table instance for a key value,hs.inspect
will throw an error upon encountering the new table instance because it wasn't encountered in the first pass. Essentially, it just needs to handle the case where it has not logged it intableAppearances
before.I've put a test case in the pull request which will accompany this issue shortly.
The text was updated successfully, but these errors were encountered: