You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#424
There were three issues:
1. There was a type error in the generated code, where the runtime
system would check for the current line number in
`$S.suspendRTS.linenum`, but the generated code would set the line
number in `$__R.linenum`. JavaScript would silently create that field
without blowing up.
2. Calling the `onBreakpoint` handler would not set the runtime's state
to paused. (This is the error shown in #424). This is fixed and
cleaned up a bit.
3. Unrelated error: we were instrumenting all blocks to support
breakpoints, but not the top-level. The logic is identical and
factored into a helper function in `suspendStep.ts`.
Code:
Error message:
Uncaught Error: step(onStep) requires the program to be paused
Screenshot:
The text was updated successfully, but these errors were encountered: