mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Fix tracing fixture (#14917)
This commit is contained in:
@@ -36,7 +36,8 @@ function checkSchedulerAPI() {
|
||||
throw 'API is not defined';
|
||||
}
|
||||
|
||||
if (Scheduler.unstable_now() !== performance.now()) {
|
||||
const abs = Math.abs(Scheduler.unstable_now() - performance.now());
|
||||
if (typeof abs !== 'number' || Number.isNaN(abs) || abs > 5) {
|
||||
throw 'API does not work';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user