[Info-vax] [OT] The wonders of Javascript...
hb
end.of at inter.net
Sun Mar 1 14:49:13 EST 2015
On 03/01/2015 06:37 PM, Simon Clubley wrote:
> There's a number of stupid design issues in there which are
> consistant with what I have come across, but even so, number + undefined
> variable = NaN (instead of syntax error) is a new low.:-)
>
> This is in the Firefox Javascript interpreter, so I don't know if this
> behaviour is specific to that interpreter.
For what it is worth, with a simplified example, iceweasel (32.0.3) and
chrome (37.0.2062.120) report a "ReferenceError: xxx is not defined" or
"Uncaught ReferenceError: xxx is not defined" in the "console log" each
pointing to the source line.
I don't have Firefox on the system I'm currently logged in, but I expect
it to show something similar in that log. And from experience I know
that Firefox displays an error count, in my configuration at the bottom
of the window, which is "clickable" and transfers me to the console log.
On the other hand, is there really a "syntax error"?
PS: Regardless whether I like Javascript or not, I use or have to use it
to run some code on the client side of a web application. Or is there
something else to check user input before/without transmitting it over
the net?
More information about the Info-vax
mailing list