MCPcopy
hub / github.com/angular/angular / canPatchOnProperty

Function canPatchOnProperty

packages/zone.js/test/browser/browser.spec.ts:27–41  ·  view source on GitHub ↗
(obj: any, prop: string)

Source from the content-addressed store, hash-verified

25}
26
27function canPatchOnProperty(obj: any, prop: string) {
28 const func = function () {
29 if (!obj) {
30 return false;
31 }
32 const desc = Object.getOwnPropertyDescriptor(obj, prop);
33 if (!desc || !desc.configurable) {
34 return false;
35 }
36 return true;
37 };
38
39 (func as any).message = 'patchOnProperties';
40 return func;
41}
42
43let supportsPassive = false;
44try {

Callers 1

browser.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…