Skip to content
New issue

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

Allow inspecting upvalues of a closure #70

Open
sewbacca opened this issue Oct 4, 2022 · 0 comments
Open

Allow inspecting upvalues of a closure #70

sewbacca opened this issue Oct 4, 2022 · 0 comments

Comments

@sewbacca
Copy link

sewbacca commented Oct 4, 2022

Objects are poor mans closures, or was it the other way arround? Anyways, I would like to inspect upvalues in closures.
I made a semi functional version, which proofs the concept viable. However I am not familiar enough with the project to quickly add everything to make it work. It looks nice and dandy, until inspecting the upvalue:
grafik
The issue is, the debugger expects the value to be a table and tries to index by upvalue. I am not doing any magic, just reusing your getUpValues function, so the solution would be to detect whenever it is a function, and ask for the upvalues in a different way. Maybe if I get enough time on my hand, I will open a pull request. In the meantime you can view the changes I made here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant