2 ms·
new ArrayBuffer(3*1024*1024*1024) crashes the page in Google Chrome
- strictnein 11y agoActually, only the inspector says > "inspected target disconnected" The page provides a somewhat more informative message: > "... Closing the apps and tabs that you don't need may help by making more memory available"
- wslh 11y agoThe loaded page is destroyed, this is not the expected behavior.
- strictnein 11y agoAgreed. Just adding some info to what was stated in the Tweet, since I'm sure not everyone likes to just run whatever bit of random code that's posted on Twitter :)
- pipedreams2 11y agoThis actually breaks at 2gb - 4kb = 2147479552b I suspect it is probably overflowing int max somewhere along the line, some googling shows this is also a buffer size for system calls such as read.