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 if (size <= 32) {
12442 if (size === 0) {
12443 return array;
12444 }
12445 const iterator = this[kHeadersMap][Symbol.iterator]();
12446 const firstValue = iterator.next().value;
12447 array[0] = [firstValue[0], firstValue[1].value];
12448 assert(firstValue[1].value !== null);
12449 for (let i = 1, j = 0, right = 0, left = 0, pivot = 0, x, value; i < size; ++i) {
12450 value = iterator.next().value;
12451 x = array[i] = [value[0], value[1].value];
12452 assert(x[1] !== null);
12453 left = 0;
12454 right = i;
12455 while (left < right) {
12456 pivot = left + (right - left >> 1);
12457 if (array[pivot][0] <= x[0]) {
12458 left = pivot + 1;
12459 } else {

Callers

nothing calls this directly

Calls 3

__privateAddFunction · 0.70
__privateSetFunction · 0.70
fillFunction · 0.70

Tested by

no test coverage detected