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

Using the : operator during method definition results in faulty minifying #119

Open
antlersss opened this issue Apr 19, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@antlersss
Copy link

When : is used during function definition, all instances of the self keyword are minified. Due to the : operator needing the self keyword to be referenced, this results in an error being thrown of the new self minification being a nil global.
Two suggested solutions: prevent the user from defining functions using the : symbol, or internally convert all : definitions into their (still functional) function Table.foo(self, bar) form, whilst still minifying self into a smaller name.

@antlersss antlersss added the bug Something isn't working label Apr 19, 2023
@antlersss antlersss changed the title Using the : operator during method definition results in fauly minifying Using the : operator during method definition results in faulty minifying Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant