Fix process.nextTick so thrown errors don't confuse it.
If the function for a process.nextTick throws an error, then the splice() never removes that function from the nextTickQueue array. This makes sure the functions that have been run in _tickCallback get removed regardless of errors. Also add a test for this.
parent
4fdebab0
Please register or sign in to comment