Open Bug 1380676 Opened 2 years ago Updated 2 years ago
Fix instances of using Date
.now() under testing/talos
In bug 1380003 a rule was added to prevent using Date.now() for timing (in favour of performance.now()). That bug simply disabled the check on all pre-existing instances of Date.now(), this bug will tackle actually fixing them. Once bug 1380003 lands, I'll paste a dxr link containing all instances that still need to be fixed.
Here are the places it gets disabled: https://dxr.mozilla.org/mozilla-central/search?q=path%3Atesting%2Ftalos+regexp%3Aeslint.*mozilla%2Favoid-Date-timing
You need to log in before you can comment on or make changes to this bug.