Skip to content

Commit

Permalink
Fix tracing fixture (#14917)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Feb 21, 2019
1 parent 8c19665 commit 219ce8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fixtures/tracing/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 219ce8a

Please sign in to comment.