]> khamidou — GitHub mirrors - electron.git/commitdiff
Add spec for using setTimeout in pure uv callback.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 9 Jan 2014 12:34:17 +0000 (20:34 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 9 Jan 2014 12:34:17 +0000 (20:34 +0800)
spec/node-spec.coffee

index 90ac22b4e51d9629dc273c03a7c26220e3ddf603..7eb84593f5118515f5cc18803c6cd9a8e8fb9d90 100644 (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!')