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
I may be a little late to reply to this, but I still hope to be helpful.
The error message you provided is caused by passing nil to the minify, optimize or simplify functions which isn't super helpful, but with the file you provided I found the solution to your problem.
You're not properly looking at the return values of the parse function which upon an error returns nil, error_string instead of the astNode you're expecting.
As for the parser error, it's caused by following a ^ character with a negative literal number and can be fixed by encapsulating the negative number within parentheses.
In the file you provided this error happens at lines 4266 and 4273.
Activity
[-]Error when minifying FFI code[/-][+]Error when minifying code[/+]NekOware commentedon May 16, 2025
I may be a little late to reply to this, but I still hope to be helpful.
The error message you provided is caused by passing nil to the
minify,optimizeorsimplifyfunctions which isn't super helpful, but with the file you provided I found the solution to your problem.You're not properly looking at the return values of the
parsefunction which upon an error returnsnil, error_stringinstead of theastNodeyou're expecting.As for the parser error, it's caused by following a
^character with a negative literal number and can be fixed by encapsulating the negative number within parentheses.In the file you provided this error happens at lines 4266 and 4273.
This problem is also mentioned in issue#5.