source-academy/js-slang

Env Viz: Avoid unnecessary break markers

Closed this issue · 1 comments

Example:

Screen Shot 2023-07-13 at 3 58 38 PM

We should check if the body of the loop has a break statement. If no, there is no need for the break marker. Similar for continue: If the body does not have a continue statement, there is no need for the continue marker.

Closed as completed in #1454