Skip to content

Commit

Permalink
Merge c37b707 into 50899e7
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNoim committed Sep 8, 2018
2 parents 50899e7 + c37b707 commit a5a70dc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -482,6 +482,7 @@ Router.prototype.prettyPrint = function () {
}

for (var i in http.METHODS) {
if (!http.METHODS.hasOwnProperty(i)) continue
const m = http.METHODS[i]
const methodName = m.toLowerCase()

Expand Down
12 changes: 12 additions & 0 deletions test/for-in-loop.test.js
@@ -0,0 +1,12 @@
/* eslint-disable */
'use strict'

const t = require('tap')
const test = t.test

test('should not throw', t => {
t.plan(1)
// Something could extend the Array prototype
Array.prototype.test = null
t.doesNotThrow(require('../'))
})

0 comments on commit a5a70dc

Please sign in to comment.