* @see https://fetch.spec.whatwg.org/#body-unusable * @param {any} object internal state
(object)
| 505 | * @param {any} object internal state |
| 506 | */ |
| 507 | function bodyUnusable (object) { |
| 508 | const body = object.body |
| 509 | |
| 510 | // An object including the Body interface mixin is |
| 511 | // said to be unusable if its body is non-null and |
| 512 | // its body’s stream is disturbed or locked. |
| 513 | return body != null && (body.stream.locked || util.isDisturbed(body.stream)) |
| 514 | } |
| 515 | |
| 516 | /** |
| 517 | * @see https://fetch.spec.whatwg.org/#concept-body-mime-type |
no outgoing calls
no test coverage detected