Created
November 8, 2011 20:37
-
-
Save zachpendleton/1349119 to your computer and use it in GitHub Desktop.
setTimeout roulette
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
(function(){ | |
var old_timeout = setTimeout; | |
setTimeout = function(fn, timeout) { | |
if (Math.round(Math.random() * 6) === 1) { | |
throw 'The cogs of the software industry are greased by the blood of unwary developers. Today that blood is yours.' | |
} else { | |
old_timeout(fn, timeout); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment