With this, can you send JSON with arbitrarily large integers to an API and make them churn on a gigabyte of digits? Has potential as a denial of service attack.
>JSON.stringify(123n)
undefined
I guess their proposal accounted for this by not supporting integers at all. But this could still be possible if you knew a service was coercing a string or similar into an Integer type (using proposed Integer.parseInt).Also i don't think this has anything to do with JSON.