Skip to content

Commit 4680089

Browse files
committed
refactor: use cached slice in app.listen
Signed-off-by: Tacit1 <[email protected]>
1 parent 4453d83 commit 4680089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ app.render = function render(name, options, callback) {
597597

598598
app.listen = function listen() {
599599
var server = http.createServer(this)
600-
var args = Array.prototype.slice.call(arguments)
600+
var args = slice.call(arguments)
601601
if (typeof args[args.length - 1] === 'function') {
602602
var done = args[args.length - 1] = once(args[args.length - 1])
603603
server.once('error', done)

0 commit comments

Comments
 (0)