-
-
Save jugglinmike/1386567 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 subject = "[Subject] is dead, long live [Subject]", | |
regex = /\[Subject\]/g; | |
while( regex.test(subject) ) { | |
subject = subject.replace( regex, subject ); | |
console.log( subject ); | |
} | |
// Warning... I killed node with this. | |
// FATAL ERROR: CALL_AND_RETRY_0 Allocation failed - process out of memory | |
// Crash shot: http://gyazo.com/33c14277400807f210547943d46b5046.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment