Why Number(symbol) crashes?

Jordan Harband ljharb at gmail.com
Wed Oct 12 00:56:55 UTC 2016


whoops, sorry, I missed the earlier thread. disregard.

On Tue, Oct 11, 2016 at 5:53 PM, Jordan Harband <ljharb at gmail.com> wrote:

> I'm not sure what you're asking. `Number(Symbol())` throws a TypeError.
>
> Perhaps are you using a Symbol sham (that only partially is able to
> polyfill Symbols)?
>
> In what browser/engine are you seeing `NaN`?
>
> On Tue, Oct 11, 2016 at 11:37 AM, Raul-Sebastian Mihăilă <
> raul.mihaila at gmail.com> wrote:
>
>> How is NaN useful? Isn't it better to be explicit if you really want a
>> string?
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161011/58990690/attachment-0001.html>


More information about the es-discuss mailing list