From: Cheng Zhao Date: Thu, 9 Jan 2014 12:34:17 +0000 (+0800) Subject: Add spec for using setTimeout in pure uv callback. X-Git-Tag: v0.8.4~11^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=968fc71b785fe6f6bf1f0fb9c191bfea8e24e797;p=electron.git Add spec for using setTimeout in pure uv callback. --- diff --git a/spec/node-spec.coffee b/spec/node-spec.coffee index 90ac22b4..7eb84593 100644 --- a/spec/node-spec.coffee +++ b/spec/node-spec.coffee @@ -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!')