SimonGAndrews / xstate-fsmPlus-Espruino

Fork of the FSM finite state machine package in the XState library from STATELY Ai, to enable the FSM to be run as a module within the Espruino JavaScript Interpreter for Microcontrollers. Providing enhancements to enable some basic StateChart features to be supported (eg nested states).
MIT License
0 stars 0 forks source link

Espruino not supporting Destructured assignment - const target #7

Closed SimonGAndrews closed 2 years ago

SimonGAndrews commented 2 years ago

image above error occurs running test_basicMachine.js inEsprunio

Target is subject of a destructuring assignment which is not supported in Espruino.

SimonGAndrews commented 2 years ago

used Babel to get a translation as follows : image

Change passes regression test and now executes in Espruino.