[Info-vax] [OT] The wonders of Javascript...
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Sun Mar 1 10:56:09 EST 2015
On 2015-03-01, Simon Clubley <clubley at remove_me.eisner.decus.org-Earth.UFP> wrote:
>
> Turns out that in Javascript integer + undefined variable equals a
> silent NaN and not a syntax error:
>
And before someone pulls me up on it, yes, I know that's (floating point)
number + undefined variable and not an integer + undefined variable.
I was thinking of the integer length present in the HTTP headers when
I wrote that.
Add the language standard level lack of a real integer datatype to the
list of issues I have with Javascript.
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world
More information about the Info-vax
mailing list