Skip to content

Commit

Permalink
perf: use plain object for internal method map
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Mar 24, 2020
1 parent 16ff25e commit 66cbc45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ unreleased
==========

* Fix incorrect middleware execution with unanchored `RegExp`s
* perf: use plain object for internal method map

1.3.4 / 2020-01-24
==================
Expand Down
2 changes: 1 addition & 1 deletion lib/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Route(path) {
this.stack = []

// route handlers for various http methods
this.methods = {}
this.methods = Object.create(null)
}

/**
Expand Down

0 comments on commit 66cbc45

Please sign in to comment.