1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 23:58:07 +02:00

Replace a few new Date().getTime() instances with Date.now()

The former format is not only more verbose, but it's also *slightly* less efficient since it creates a new `Date` object.
This commit is contained in:
Jonas Jenwald 2021-02-11 23:00:42 +01:00
parent 0479deef4e
commit 4733f163e8
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ const TestReporter = function (browser) {
}
this.now = function () {
return new Date().getTime();
return Date.now();
};
this.jasmineStarted = function (suiteInfo) {