Bring coverage up to 100%

This commit is contained in:
Timothy Gu 2016-12-05 18:46:02 -08:00
parent 4d944365df
commit 552c1a601d
2 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,12 @@
[ "es2015", { "loose": true } ]
],
"plugins": [
"istanbul"
[ "istanbul", {
"exclude": [
"src/blob.js",
"test"
]
} ]
]
},
"rollup": {

View File

@ -245,6 +245,7 @@ function createHeadersIterator(target, kind) {
const HeadersIteratorPrototype = Object.setPrototypeOf({
next() {
// istanbul ignore if
if (!this ||
Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
throw new TypeError('Value of `this` is not a HeadersIterator');