W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

[Bug 23532] Dealing with undefined

From: <bugzilla@jessica.w3.org>
Date: Wed, 23 Oct 2013 21:45:25 +0000
To: public-script-coord@w3.org
Message-ID: <bug-23532-3890-JeD5lk5e5n@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23532

--- Comment #25 from Glenn Maynard <glenn@zewt.org> ---
It's certainly not what a JS programmer wants.  Having "Math.ceil()" return NaN
instead of throwing an exception is useless, and does nothing but make
development more difficult.

It may well not be web-compatible to throw in many cases (and that's ultimately
what matters), but it's definitely better.  When it's this certain the
programmer has made a mistake, tell them.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 23 October 2013 21:45:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:18 UTC