| 12974 | if (bodyUnusable(this)) { |
| 12975 | throw webidl.errors.exception({ |
| 12976 | header: "Response.clone", |
| 12977 | message: "Body has already been consumed." |
| 12978 | }); |
| 12979 | } |
| 12980 | const clonedResponse = cloneResponse(this[kState]); |
| 12981 | if (hasFinalizationRegistry && ((_a = this[kState].body) == null ? void 0 : _a.stream)) { |
| 12982 | streamRegistry.register(this, new WeakRef(this[kState].body.stream)); |
| 12983 | } |
| 12984 | return fromInnerResponse(clonedResponse, getHeadersGuard(this[kHeaders])); |
| 12985 | } |
| 12986 | [nodeUtil.inspect.custom](depth, options) { |
| 12987 | var _a; |
| 12988 | if (options.depth === null) { |
| 12989 | options.depth = 2; |
| 12990 | } |