Skip to content

CSE Machine: Function descriptions during print mode overlaps with frames #3602

@ThatLi

Description

@ThatLi

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);
Image

Example 2:

function foo() {
    function f(x) {
        return y => x + 3;
    }
    return f;
}
foo()(4);
foo()(5);
Image

Metadata

Metadata

Labels

minorLess important than important, but more than nice-to-have

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions