Skip to content

Instantly share code, notes, and snippets.

@aheckmann
Created June 14, 2012 18:09
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 aheckmann/2931886 to your computer and use it in GitHub Desktop.
Save aheckmann/2931886 to your computer and use it in GitHub Desktop.
blowstack
var times = 0;
function loop () {
++times;
loop();
}
try {
loop();
} finally {
console.log('stack overflow after %d loops', times)
}
// Stack overflowed at 26140
// RangeError: Maximum call stack size exceeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment