Skip to content

calculate activity outputs the incorrect error message if variable is changed in function #798

@phoenix14113

Description

@phoenix14113

function f(y) { if (arguments.length != 1) { throw new SyntaxError("Wrong number of arguments in function f (" + arguments.length + " provided, 1 expected)"); } return y }

This is output when you change the x in f(x) to any other letter. the correct error message should be "invalid left hand side of assignment operator =".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions