(callback: () => mixed, context: any)
| 696 | } |
| 697 | |
| 698 | function callCallback(callback: () => mixed, context: any) { |
| 699 | if (typeof callback !== 'function') { |
| 700 | throw new Error( |
| 701 | 'Invalid argument passed as callback. Expected a function. Instead ' + |
| 702 | `received: ${callback}`, |
| 703 | ); |
| 704 | } |
| 705 | |
| 706 | callback.call(context); |
| 707 | } |
| 708 | |
| 709 | export function resetHasForceUpdateBeforeProcessing() { |
| 710 | hasForceUpdate = false; |
no outgoing calls
no test coverage detected