This PR fixes this issue. The bug is in the executor service, where the previous variables were stored by reference. Hence, they got modified when the next line runs, and became equal to the current variables.
The fix is to deep copy (with copy.deepcopy) the variables, so that the stored previous variables do not change.
Tested locally on the frontend. Testcases for array and dict have been added to the executor service.
This PR fixes this issue. The bug is in the executor service, where the previous variables were stored by reference. Hence, they got modified when the next line runs, and became equal to the current variables.
The fix is to deep copy (with
copy.deepcopy
) the variables, so that the stored previous variables do not change.Tested locally on the frontend. Testcases for array and dict have been added to the executor service.