Mark S. Miller (2013-07-12T15:54:10.000Z)
domenic at domenicdenicola.com (2013-07-12T16:33:25.994Z)
On Fri, Jul 12, 2013 at 8:49 AM, Allen Wirfs-Brock <allen at wirfs-brock.com>wrote: > > 2) Is it intentional that `Number.toInteger(Infinity)` returns `true`? > > Huh? How's that? > > `Number.toInteger` is specified as the single step: > >> 1 Return ToInteger(number) > > and step 4 of the abstract operation ToInteger(number): > >> 4 If number is +0, -0, +∞, or -∞, return number. I must have missed that when it came up. I find it bizarre that `toInteger(anything) === Infinity`. `Infinity` is not an integer.