Closed SimonGAndrews closed 2 years ago
Investigation showed a construct such as this fails in a similiar way on Esprunio
The occurrance here of the issue is in a complex functional assignment, so avoiding changing the right hand side ot the assignment. The change will be to add an intermediate array variable to left hand side and then pick out elements with new seperate element assignments. Seems best option to maintin original functionality with minimum rewrite whilst maintianing variable names for clarity.
Change passes regression test and now executes in Espruino.
above error occurs when executing \test\espruino\test_basicmachine.js