This PR makes some changes to how step count is updated, so that context.runtime.envStepsTotal represents the number of steps completed by the machine before the program finishes/runs into an error.
This is needed to implement source-academy/frontend#2847.
Changes
[X] context.runtime.envStepsTotal is updated during evaluation
[X] Step count now starts from 0 and represents the number of steps completed
Description
This PR makes some changes to how step count is updated, so that
context.runtime.envStepsTotal
represents the number of steps completed by the machine before the program finishes/runs into an error.This is needed to implement source-academy/frontend#2847.
Changes
context.runtime.envStepsTotal
is updated during evaluation