fix endOfMicrotask on FF