Skip to content
Myr

refactor: use cached slice in app.listen (#6897)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TheMysterious · committed by GitHub · parent 2551a7d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Tacit1 <tacitim5@gmail.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/application.js+1 added-1 removed
595 unmodified lines
596 */597598app.listen = function listen() {599 var server = http.createServer(this)600 var args = Array.prototype.slice.call(arguments)600 var args = slice.call(arguments)601 if (typeof args[args.length - 1] === 'function') {602 var done = args[args.length - 1] = once(args[args.length - 1])603 server.once('error', done)604 }
27 unmodified lines