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
Function scoping issue #913
Comments
This is more painful than expected. When defined, Current solutions:
At the moment prepending to the code variable seems best. It's a relatively large change though. |
... but we can't prepend to the code variable because now we're directly linking to the native string if it exists (to allow functions to be executed straight out of flash). So either we ditch that and make everything more efficient, we do the hack, or we add the list of parameters. |
Oh well... Added |
http://forum.espruino.com/conversations/292464
Fails even without the
new
- this appears to be some problem with the function's own fields getting priority over the parametersThe text was updated successfully, but these errors were encountered: