sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
252 stars 240 forks source link

calcalculator outputs error checking funtion if graph function is changed to "f(y) =" #916

Closed phoenix14113 closed 4 years ago

phoenix14113 commented 4 years ago

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 if you change the graphing function f(x) to another variable f(y). Numbers and symbols output the correct, right column, formatted error handling but letters, with the exception of x, output the actual code.

quozl commented 4 years ago

@llaske, this would appear to be Sugarizer, not Sugar.

phoenix14113 commented 4 years ago

@llaske, this would appear to be Sugarizer, not Sugar.

oops.. sorry