Closed SimonGAndrews closed 2 years ago
Looks like original is destructuring out the exec property from each element of the state.actions array. Espruino does not like destructuring.
When executing this code state object looks like this (for example). Actions is an array of action objects each with type and exec properties.
The following mod uses object.assign to create an action object from the action array element.
note also as per original , in the mod:
The above mode passes regression tests and enables execution in Espruino.
The following error occurs when running test_basicInterpreter.