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

Function BOMSniffing

github-actions/browserstack/set-browserstack-env.js:15425–15435  ·  view source on GitHub ↗
(ioQueue)

Source from the content-addressed store, hash-verified

15423 }
15424 dataURL += btoa(decoder.end());
15425 return dataURL;
15426 }
15427 case "Text": {
15428 let encoding = "failure";
15429 if (encodingName) {
15430 encoding = getEncoding(encodingName);
15431 }
15432 if (encoding === "failure" && mimeType) {
15433 const type2 = parseMIMEType(mimeType);
15434 if (type2 !== "failure") {
15435 encoding = getEncoding(type2.parameters.get("charset"));
15436 }
15437 }
15438 if (encoding === "failure") {

Callers 1

decodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected