Descriptions for function objects displayed when print mode is on would result in overlaps, as pointed out by @Akshay-2007-1. This issue exists in the current version of Source Academy, which makes it difficult to make out the names declared in frames that were overlaid.
Example 1:
function foo(n) {
let arr = [];
let i = 0;
while (i < n) {
function bar() {
return 3;
}
arr[i] = bar;
i = i + 1;
}
}
foo(3);
Example 2:
function foo() {
function f(x) {
return y => x + 3;
}
return f;
}
foo()(4);
foo()(5);

Descriptions for function objects displayed when print mode is on would result in overlaps, as pointed out by @Akshay-2007-1. This issue exists in the current version of Source Academy, which makes it difficult to make out the names declared in frames that were overlaid.
Example 1:
Example 2: