(fn, a)
| 22030 | } |
| 22031 | } |
| 22032 | function unbatchedUpdates(fn, a) { |
| 22033 | var prevExecutionContext = executionContext; |
| 22034 | executionContext &= ~BatchedContext; |
| 22035 | executionContext |= LegacyUnbatchedContext; |
| 22036 | |
| 22037 | try { |
| 22038 | return fn(a); |
| 22039 | } finally { |
| 22040 | executionContext = prevExecutionContext; |
| 22041 | |
| 22042 | if (executionContext === NoContext) { |
| 22043 | // Flush the immediate callbacks that were scheduled during this batch |
| 22044 | flushSyncCallbackQueue(); |
| 22045 | } |
| 22046 | } |
| 22047 | } |
| 22048 | function flushSync(fn, a) { |
| 22049 | if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { |
| 22050 | { |
no test coverage detected