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

Function __privateAdd

github-actions/browserstack/set-browserstack-env.js:90–94  ·  view source on GitHub ↗
(obj, member, value)

Source from the content-addressed store, hash-verified

88 return getter ? getter.call(obj) : member.get(obj);
89 };
90 var __privateAdd = (obj, member, value) => {
91 if (member.has(obj))
92 throw TypeError("Cannot add the same private member more than once");
93 member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
94 };
95 var __privateSet = (obj, member, value, setter) => {
96 __accessCheck(obj, member, "write to private field");
97 setter ? setter.call(obj, value) : member.set(obj, value);

Callers 10

constructorMethod · 0.70
constructorMethod · 0.70
constructorMethod · 0.70
constructorMethod · 0.70
constructorMethod · 0.70
__superMethod · 0.70
constructorMethod · 0.70
constructorMethod · 0.70
constructorMethod · 0.70
constructorMethod · 0.70

Calls 3

hasMethod · 0.45
addMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected