MCPcopy Create free account
hub / github.com/angular/dev-infra / [kDispatch]

Method [kDispatch]

github-actions/browserstack/set-browserstack-env.js:8036–8051  ·  view source on GitHub ↗
(opts, handler)

Source from the content-addressed store, hash-verified

8034 if (maxHeaderSize != null && !Number.isFinite(maxHeaderSize)) {
8035 throw new InvalidArgumentError("invalid maxHeaderSize");
8036 }
8037 if (socketPath != null && typeof socketPath !== "string") {
8038 throw new InvalidArgumentError("invalid socketPath");
8039 }
8040 if (connectTimeout != null && (!Number.isFinite(connectTimeout) || connectTimeout < 0)) {
8041 throw new InvalidArgumentError("invalid connectTimeout");
8042 }
8043 if (keepAliveTimeout != null && (!Number.isFinite(keepAliveTimeout) || keepAliveTimeout <= 0)) {
8044 throw new InvalidArgumentError("invalid keepAliveTimeout");
8045 }
8046 if (keepAliveMaxTimeout != null && (!Number.isFinite(keepAliveMaxTimeout) || keepAliveMaxTimeout <= 0)) {
8047 throw new InvalidArgumentError("invalid keepAliveMaxTimeout");
8048 }
8049 if (keepAliveTimeoutThreshold != null && !Number.isFinite(keepAliveTimeoutThreshold)) {
8050 throw new InvalidArgumentError("invalid keepAliveTimeoutThreshold");
8051 }
8052 if (headersTimeout != null && (!Number.isInteger(headersTimeout) || headersTimeout < 0)) {
8053 throw new InvalidArgumentError("headersTimeout must be a positive integer or zero");
8054 }

Callers

nothing calls this directly

Calls 10

resumeFunction · 0.70
__spreadValuesFunction · 0.70
__privateGetFunction · 0.70
__privateMethodFunction · 0.70
pushMethod · 0.45
dispatchMethod · 0.45
getMethod · 0.45
onMethod · 0.45
setMethod · 0.45
onErrorMethod · 0.45

Tested by

no test coverage detected