1/**
2 * Defines a small polyfill for process.nextTick. Eventually we'd like to replace this polyfill with
3 * a native implementation with the correct timing semantics.
4 */
5
6if (!process.nextTick) {
7  process.nextTick = (callback, ...args) => {
8    setTimeout(() => callback(...args), 0);
9  };
10}
11