Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
phoenix14113 opened this issue May 5, 2020 · 2 comments
Labels
bug to be release Fixed, to be release
Milestone

Comments

@phoenix14113
Copy link

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 =".

@phoenix14113 phoenix14113 changed the title calculate activity grapohing function outputs the incorrect error message if variable is changed calculate activity graphing function outputs the incorrect error message if variable is changed May 5, 2020
@llaske llaske changed the title calculate activity graphing function outputs the incorrect error message if variable is changed calculate activity outputs the incorrect error message if variable is changed in function May 5, 2020
@llaske llaske added the bug label May 5, 2020
@phoenix14113
Copy link
Author

phoenix14113 commented Jun 2, 2020

If you enter any character except x in the f(x) graphing utility for example:

Error step 1
you get this error message inside of the input box:

Error step 2
and if you press enter when this error message is inside the input box you get this:

Error step 3

@llaske
Copy link
Owner

llaske commented May 9, 2021

Fixed in #950

@llaske llaske added the to be release Fixed, to be release label May 9, 2021
@llaske llaske added this to the v1.6 milestone Dec 11, 2021
@llaske llaske closed this as completed Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug to be release Fixed, to be release
Projects
None yet
Development

No branches or pull requests

2 participants