()
| 12791 | [util.inspect.custom]: { |
| 12792 | enumerable: false |
| 12793 | } |
| 12794 | }); |
| 12795 | webidl.converters.HeadersInit = function(V, prefix, argument) { |
| 12796 | if (webidl.util.Type(V) === "Object") { |
| 12797 | const iterator = Reflect.get(V, Symbol.iterator); |
| 12798 | if (!util.types.isProxy(V) && iterator === Headers2.prototype.entries) { |
| 12799 | try { |
| 12800 | return getHeadersList(V).entriesList; |
| 12801 | } catch (e) { |
| 12802 | } |
| 12803 | } |
| 12804 | if (typeof iterator === "function") { |
| 12805 | return webidl.converters["sequence<sequence<ByteString>>"](V, prefix, argument, iterator.bind(V)); |
| 12806 | } |
| 12807 | return webidl.converters["record<ByteString, ByteString>"](V, prefix, argument); |
| 12808 | } |
| 12809 | throw webidl.errors.conversionFailed({ |
| 12810 | prefix: "Headers constructor", |
nothing calls this directly
no test coverage detected