Merge pull request #2817 from atom/fix-set-immediate
Update to node v4.1.0
This commit is contained in:
commit
c700c58793
4 changed files with 24 additions and 2 deletions
2
atom.gyp
2
atom.gyp
|
@ -4,7 +4,7 @@
|
||||||
'product_name%': 'Electron',
|
'product_name%': 'Electron',
|
||||||
'company_name%': 'GitHub, Inc',
|
'company_name%': 'GitHub, Inc',
|
||||||
'company_abbr%': 'github',
|
'company_abbr%': 'github',
|
||||||
'version%': '0.32.3',
|
'version%': '0.32.4',
|
||||||
},
|
},
|
||||||
'includes': [
|
'includes': [
|
||||||
'filenames.gypi',
|
'filenames.gypi',
|
||||||
|
|
11
spec/fixtures/module/set-immediate.js
vendored
Normal file
11
spec/fixtures/module/set-immediate.js
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
process.on('uncaughtException', function(error) {
|
||||||
|
process.send(error.message);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
|
||||||
|
process.on('message', function(msg) {
|
||||||
|
setImmediate(function() {
|
||||||
|
process.send('ok');
|
||||||
|
process.exit(0);
|
||||||
|
});
|
||||||
|
});
|
|
@ -56,6 +56,13 @@ describe 'node feature', ->
|
||||||
done()
|
done()
|
||||||
child.send 'message'
|
child.send 'message'
|
||||||
|
|
||||||
|
it 'has setImmediate working in script', (done) ->
|
||||||
|
child = child_process.fork path.join(fixtures, 'module', 'set-immediate.js')
|
||||||
|
child.on 'message', (msg) ->
|
||||||
|
assert.equal msg, 'ok'
|
||||||
|
done()
|
||||||
|
child.send 'message'
|
||||||
|
|
||||||
describe 'contexts', ->
|
describe 'contexts', ->
|
||||||
describe 'setTimeout in fs callback', ->
|
describe 'setTimeout in fs callback', ->
|
||||||
it 'does not crash', (done) ->
|
it 'does not crash', (done) ->
|
||||||
|
@ -141,3 +148,7 @@ describe 'node feature', ->
|
||||||
# Not reliable on some machines
|
# Not reliable on some machines
|
||||||
xit 'should have isTTY defined', ->
|
xit 'should have isTTY defined', ->
|
||||||
assert.equal typeof(process.stdout.isTTY), 'boolean'
|
assert.equal typeof(process.stdout.isTTY), 'boolean'
|
||||||
|
|
||||||
|
describe 'vm.createContext', ->
|
||||||
|
it 'should not crash', ->
|
||||||
|
require('vm').runInNewContext('')
|
||||||
|
|
2
vendor/node
vendored
2
vendor/node
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 4098d45fbb822370c19d2fe7b88162759db4eb96
|
Subproject commit aa9c7a2316ba7762f1d04d091585695be3e6be22
|
Loading…
Reference in a new issue