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

Function isomorphicDecode

github-actions/browserstack/set-browserstack-env.js:3728–3743  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

3726 }
3727 const buffer = Buffer.from(data, "base64");
3728 return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
3729 }
3730 function collectAnHTTPQuotedString(input, position, extractValue) {
3731 const positionStart = position.position;
3732 let value = "";
3733 assert(input[position.position] === '"');
3734 position.position++;
3735 while (true) {
3736 value += collectASequenceOfCodePoints(
3737 (char) => char !== '"' && char !== "\\",
3738 input,
3739 position
3740 );
3741 if (position.position >= input.length) {
3742 break;
3743 }
3744 const quoteOrBackslash = input[position.position];
3745 position.position++;
3746 if (quoteOrBackslash === "\\") {

Callers 2

dataURLProcessorFunction · 0.70

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected