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

In CLI mode, order of modules is wrong. pretokenise=>acorn parse errors #138

Closed
gfwilliams opened this issue Sep 16, 2021 · 0 comments
Closed

Comments

@gfwilliams
Copy link
Member

gfwilliams commented Sep 16, 2021

As mentioned at http://forum.espruino.com/conversations/367900/#comment16179710

Basically the CLI loads the modules in the order that they are in the directory. There are actually specific orders required though - eg https://github.com/espruino/EspruinoWebIDE/blob/master/index.html#L220

So we should probably have a 'sortorder' in the module declaration, and then they can be sorted before init is called

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