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

Function validateCookieMaxAge

github-actions/saucelabs/set-saucelabs-env.js:16568–16572  ·  view source on GitHub ↗
(maxAge)

Source from the content-addressed store, hash-verified

16566 }
16567 function validateCookiePath(path4) {
16568 for (let i = 0; i < path4.length; ++i) {
16569 const code = path4.charCodeAt(i);
16570 if (code < 32 || // exclude CTLs (0-31)
16571 code > 126 || // exclude DEL and non-ascii
16572 code === 59) {
16573 throw new Error("Invalid cookie path");
16574 }
16575 }

Callers 1

stringifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected