()
| 850 | } |
| 851 | |
| 852 | static ensure() { |
| 853 | if (current_batch === null) { |
| 854 | const batch = (current_batch = new Batch()); |
| 855 | |
| 856 | if (!is_processing && !is_flushing_sync) { |
| 857 | queue_micro_task(() => { |
| 858 | if (!batch.#started) { |
| 859 | batch.flush(); |
| 860 | } |
| 861 | }); |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | return current_batch; |
| 866 | } |
| 867 | |
| 868 | apply() { |
| 869 | if (!async_mode_flag || (!this.is_fork && this.#prev === null && this.#next === null)) { |
no test coverage detected