TIL that #NodeJS / #v8 has not only a fixed heap size, but strings can only be slightly less than a Gibibyte (1073741799 Bytes) long. Try it yourself:
'x'.repeat(2 ** 30 - 24),0 // RangeError
JSON.stringify('x'.repeat(2 ** 30 - 25)),0 // crashes the whole process
-
-
Replying to @phihag2 replies 0 retweets 3 likes
-
1 reply 0 retweets 1 like
-
Replying to @bmeurer @marvinhagemeist and
I doubled the max length once... Apparently that was not a sustainable solution
1 reply 0 retweets 4 likes
Replying to @hooraybuffer @bmeurer and
just double it again peter how hard can it be geez
4:58 AM - 10 Jul 2019
0 replies
0 retweets
9 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.