Skip to content

Instantly share code, notes, and snippets.

@y21
Last active September 30, 2020 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y21/65b73c0224153a4e31d35b14560cfc3e to your computer and use it in GitHub Desktop.
Save y21/65b73c0224153a4e31d35b14560cfc3e to your computer and use it in GitHub Desktop.
const {Isolate} = require('isolated-vm');
const isolate = new Isolate({memoryLimit: 16});
const ctx = isolate.createContextSync();
ctx.eval("Math.max('1'.repeat(1024 ** 2 * 127));");
process.exit();
@rafaelwastaken
Copy link

my brain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment