source-academy/js-slang

Env Viz: Import statements handled inconsistently

Closed this issue · 0 comments

Example:
https://share.sourceacademy.org/bqb59

Screen Shot 2023-07-19 at 6 44 23 PM

The step above makes sense: import declarations are hoisted to the beginning.

Screen Shot 2023-07-19 at 6 46 22 PM

Why is there a POP after the first import, but not after the second?

Screen Shot 2023-07-19 at 6 46 33 PM

This step and the next steps are not leading to any change.

Screen Shot 2023-07-19 at 6 46 39 PM Screen Shot 2023-07-19 at 6 46 46 PM

But now suddenly:

Screen Shot 2023-07-19 at 6 46 56 PM

Stepping back from the last step shows states that are inconsistent with the forward steps.