MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / badEvent

Function badEvent

apps/automated/src/xhr/xhr-tests.ts:240–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238 loadEventFired = false;
239 xhr.onload = () => (loadCallbackFired = true);
240 let badEvent = () => {
241 throw new Error("Shouldn't call me");
242 };
243 xhr.addEventListener('load', () => (loadEventFired = true));
244 xhr.addEventListener('load', badEvent);
245 xhr.removeEventListener('load', badEvent);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected