-
-
Save ralphtheninja/4959973 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bigBlob = Array.apply(null, Array(1024 * 100)).map(function () { return 'aaaaaaaaaa' }).join('') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for (( i=1; i<=10000; i++ )) | |
do | |
echo "Running test $i .." | |
node blob.js | |
if [ $? -ne 0 ]; then | |
break | |
fi | |
done |
You mean that eventually it will crash node?
Yup.
The break check is obviously completely redundant here, it kind of went along with copy and paste :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This WILL crash eventually with a bus error if you run a 32 bit ubuntu system.