Skip to content

JS Interpreter does not work #2216

@Luka-D

Description

@Luka-D

Describe the bug:
I am running Bruce Firmware 1.14. I have a few .js files stored on an SD card. When I select the JS Interpreter option from the main menu and attempt to run any of the .js files, it crashes back to the startup screen. No error message is given.

However, when I access the Files option in the main menu, locate the .js file and select the JS Script Run option, the .js file runs fine.

Steps To Reproduce:

  1. Save .js file somewhere on SD card.
  2. Click the JS Interpreter option on the main menu.
  3. Navigate Load.... -> SD Card -> .js file
  4. Click on the .js file you wish to run, the software will crash back to the main menu.
  5. Navigate to the Files option in the main menu and locate the file. Run it using the JS Script Run option and it should work fine.
  • Device used: LilyGo T-Embed CC1101 Plus

Expected behavior:
JS files ran from the JS Interpreter run normally and do not crash.

Actual behavior:
JS files ran from the JS Interpreter crash and revert back to Bruce main menu.

Additional context / logs:
Unsure if this functionality currently exists, but running a faulty .js file from Files will show you which line of code is causing an error. It would be helpful for this to happen in the JS Interpreter as well.

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