MCPcopy Create free account
hub / github.com/angular/dev-infra / clone

Method clone

github-actions/browserstack/set-browserstack-env.js:12793–12807  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 4

bodyUnusableFunction · 0.70
cloneResponseFunction · 0.70
fromInnerResponseFunction · 0.70
registerMethod · 0.45

Tested by

no test coverage detected