source-academy/js-slang

Env Viz: order of declaration in Program environment

Closed this issue · 0 comments

Screen Shot 2023-07-19 at 6 59 53 PM

Here the names x and y are displayed right away in the Program environment, but the imported names are gradually added. I think more consistent would be if we show all toplevel names right away in the program environment. For this, we need to make sure that the function that scans out the names declared in a block will catch the functions in the import declarations.