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

Method constructor

github-actions/browserstack/set-browserstack-env.js:12443–12456  ·  view source on GitHub ↗
(init = void 0)

Source from the content-addressed store, hash-verified

12441 });
12442 }
12443 if (getHeadersGuard(headers) === "immutable") {
12444 throw new TypeError("immutable");
12445 }
12446 return getHeadersList(headers).append(name, value, false);
12447 }
12448 function compareHeaderName(a, b) {
12449 return a[0] < b[0] ? -1 : 1;
12450 }
12451 var HeadersList = class _HeadersList {
12452 constructor(init) {
12453 /** @type {[string, string][]|null} */
12454 __publicField(this, "cookies", null);
12455 if (init instanceof _HeadersList) {
12456 this[kHeadersMap] = new Map(init[kHeadersMap]);
12457 this[kHeadersSortedMap] = init[kHeadersSortedMap];
12458 this.cookies = init.cookies === null ? null : [...init.cookies];
12459 } else {

Callers

nothing calls this directly

Calls 3

__privateAddFunction · 0.70
__privateSetFunction · 0.70
fillFunction · 0.70

Tested by

no test coverage detected