We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signal.emit("clear")
Error: library/hump/signal.lua:42: bad argument #1 to 'pairs' (table expected, got function)
function Registry:emit(s, ...) for f in pairs(self[s]) do f(...) end end
Registry:emit does not check if self[s] is a function before trying to read it like a table.
self[s]
The text was updated successfully, but these errors were encountered:
This is the patch I'm using:
function Registry:emit(s, ...) if type(self[s]) == "function" then print("HUMP Signal:", "This would have crashed hump signal.") else for f in pairs(self[s]) do f(...) end end
Sorry, something went wrong.
No branches or pull requests
signal.emit("clear")
Error: library/hump/signal.lua:42: bad argument #1 to 'pairs' (table expected, got function)
Registry:emit does not check if
self[s]
is a function before trying to read it like a table.The text was updated successfully, but these errors were encountered: