What's the expected behavior of a JavaScript program that allocates all memory on the machine?

Browser killing the tab way before it happens