Number.isNaN

John-David Dalton john.david.dalton at gmail.com
Thu Dec 13 19:19:35 PST 2012


I noticed that ES6  `Number.isNaN` checks `Type(number)` of Number, would
it make sense to instead check that the [[BuiltinBrand]] is
BuiltinNumberWrapper similar to `Array.isArray`'s check. This would also
allow `Number.isNaN(Object(NaN))` to return `true`. Thoughts?

- JDD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121213/9a27b245/attachment.html>


More information about the es-discuss mailing list