| 9871 | removeListener(ev, ...args) { |
| 9872 | return this.off(ev, ...args); |
| 9873 | } |
| 9874 | push(chunk) { |
| 9875 | if (this[kConsume] && chunk !== null) { |
| 9876 | consumePush(this[kConsume], chunk); |
| 9877 | return this[kReading] ? super.push(chunk) : true; |
| 9878 | } |
| 9879 | return super.push(chunk); |
| 9880 | } |
| 9881 | // https://fetch.spec.whatwg.org/#dom-body-text |
| 9882 | text() { |
| 9883 | return __async(this, null, function* () { |
| 9884 | return consume(this, "text"); |
| 9885 | }); |
| 9886 | } |
| 9887 | // https://fetch.spec.whatwg.org/#dom-body-json |
| 9888 | json() { |
| 9889 | return __async(this, null, function* () { |
| 9890 | return consume(this, "json"); |
| 9891 | }); |