Skip to content

Commit

Permalink
fix(body): make body methods enumerable
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Aug 28, 2019
1 parent ec9ec0c commit b20d190
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ class Body {
static mixin (proto) {
for (const name of Object.getOwnPropertyNames(Body.prototype)) {
const desc = Object.getOwnPropertyDescriptor(Body.prototype, name)
Object.defineProperty(proto, name, desc)
Object.defineProperty(proto, name, {
...desc,
enumerable: true
})
}
}

Expand Down

0 comments on commit b20d190

Please sign in to comment.