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

Method onerror

github-actions/saucelabs/set-saucelabs-env.js:15594–15597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15592 const BOMEncoding = BOMSniffing(bytes);
15593 let slice = 0;
15594 if (BOMEncoding !== null) {
15595 encoding = BOMEncoding;
15596 slice = BOMEncoding === "UTF-8" ? 3 : 2;
15597 }
15598 const sliced = bytes.slice(slice);
15599 return new TextDecoder(encoding).decode(sliced);
15600 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected