MCPcopy Index your code
hub / github.com/angular/angular / supportPatchXHROnProperty

Function supportPatchXHROnProperty

packages/zone.js/test/test-util.ts:69–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69export function supportPatchXHROnProperty() {
70 let desc = Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype, 'onload');
71 if (!desc && (window as any)['XMLHttpRequestEventTarget']) {
72 desc = Object.getOwnPropertyDescriptor(global['XMLHttpRequestEventTarget'].prototype, 'onload');
73 }
74 if (!desc || !desc.configurable) {
75 return false;
76 }
77 return true;
78}
79
80let supportSetErrorStack = true;
81

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…