Skip to content

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

@gfwilliams

Description

@gfwilliams

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions