Skip to content

function declarations get converted to variable assignment without infinite loop safety #748

Open
@EricBalingit

Description

@EricBalingit

variable declaration expressions such as:

var test1 = function ( a, b ) {
    return a + b;
};

result in the expected output with KAInfiniteLoopProtect

while function declarations such as

function test2 ( a, b ) {
    return a + b;
}

do not

repro here:
https://www.khanacademy.org/computer-programming/func-decl-vdecl-without-loop-safety/5771192026742784

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions