-
Notifications
You must be signed in to change notification settings - Fork 44
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
Assertion fail when returning an anonymous function. #14
Comments
The assertion error is fixed by d43ed9f. However the way we handle bound closure variables currently is not good (and for the reference case outright violates SSA). Closure body also shouldn't be part of the same CFG really... |
Yea, seems like an issue I'll face later. |
Follow-up fix: 8e85ad3 I didn't have notices enabled locally, so missed that part. |
In 0d54187 I've introduced a Func structure, so each function has a clearly separated CFG. The Funcs are collected in a Script, which is what is returned by the parser now. Closures still need extra work for the use variable handling. |
Does GraphViz still work? |
GraphViz printer fixed in 1b0e384. Also added a printScript method to print all functions into one graph. |
In the following code example, an anonymous function is returned, acting like a closure. However, the Printer class expects a function name.
Error:
The text was updated successfully, but these errors were encountered: