Last active
December 8, 2016 13:11
-
-
Save hassy/c8148caf21c06d40104b39a7b7a03fde to your computer and use it in GitHub Desktop.
Trigger an infinite loop in Node.js 6.8.1+
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 i1 = setImmediate(function() { | |
console.log('i1 cb'); | |
clearImmediate(i2); | |
clearImmediate(i3); | |
}); | |
var i2 = setImmediate(function() { | |
console.log('i2 cb'); | |
}); | |
var i3 = setImmediate(function() { | |
console.log('i3 cb'); | |
}); | |
console.log('All set'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue: nodejs/node#9756