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
-
-
just double it again peter how hard can it be geez
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.
