Skip to content

Commit aa3a670

Browse files
committed
Drop support for Node.js below 0.10
1 parent 0c68537 commit aa3a670

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2.x
2+
===
3+
4+
* Drop support for Node.js below 0.10
5+
16
1.3.2 / 2017-09-24
27
==================
38

index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ var setPrototypeOf = require('setprototypeof')
2828

2929
var slice = Array.prototype.slice
3030

31-
/* istanbul ignore next */
32-
var defer = typeof setImmediate === 'function'
33-
? setImmediate
34-
: function(fn){ process.nextTick(fn.bind.apply(fn, arguments)) }
35-
3631
/**
3732
* Expose `Router`.
3833
*/
@@ -208,13 +203,13 @@ Router.prototype.handle = function handle(req, res, callback) {
208203

209204
// signal to exit router
210205
if (layerError === 'router') {
211-
defer(done, null)
206+
setImmediate(done, null)
212207
return
213208
}
214209

215210
// no more matching layers
216211
if (idx >= stack.length) {
217-
defer(done, layerError)
212+
setImmediate(done, layerError)
218213
return
219214
}
220215

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"index.js"
3535
],
3636
"engines": {
37-
"node": ">= 0.8"
37+
"node": ">= 0.10"
3838
},
3939
"scripts": {
4040
"lint": "eslint --plugin markdown --ext js,md .",

0 commit comments

Comments
 (0)