JSON support for BigInt in Chrome/V8

Andrea Giammarchi andrea.giammarchi at gmail.com
Tue Jul 17 22:44:10 UTC 2018


I guess a better example would've been `Boolean('false')` returns true, but
yeah, I've moved slightly forward already with everything, if you read
other messages.

Regards.

On Wed, Jul 18, 2018 at 12:06 AM Waldemar Horwat <waldemar at google.com>
wrote:

> On 07/17/2018 04:27 AM, Andrea Giammarchi wrote:
> > actually, never mind ... but I find it hilarious
> that BigInt('55555555555555555550000000000000000000001') works
> but BigInt('55555555555555555550000000000000000000001n') doesn't ^_^;;
>
> That's no different from how other built-in types work.  String('"foo"')
> doesn't give you the same string as the string literal "foo".
>
>      Waldemar
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180718/cb88d151/attachment.html>


More information about the es-discuss mailing list