Add spec for using setTimeout in pure uv callback.

This commit is contained in:
Cheng Zhao 2014-01-09 20:34:17 +08:00
parent d0494024a9
commit 968fc71b78

View file

@ -37,6 +37,11 @@ describe 'node feature', ->
fs.readFile __filename, ->
setTimeout done, 0
describe 'setTimeout in pure uv callback', ->
it 'does not crash', (done) ->
process.scheduleCallback ->
setTimeout done, 0
describe 'throw error in node context', ->
it 'gets caught', (done) ->
error = new Error('boo!')