Skip to content

Instantly share code, notes, and snippets.

@noodle71
Created June 5, 2019 09:35
Show Gist options
  • Save noodle71/c14450de750257e9c633a270a415425f to your computer and use it in GitHub Desktop.
Save noodle71/c14450de750257e9c633a270a415425f to your computer and use it in GitHub Desktop.
Allocate more than one GB is possible
const createGB = () => (new Uint8Array(1024*1024*1024)).map(i => i);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment