In node 16, performance is a global with the mark method (so the hrtime path isn't used), but it does not have getEntriesByName (so marky.stop throws an exception). Feature detection is now necessary for all the performance methods used :/
Originally surfaced in GoogleChrome/lighthouse-ci#596
In node 16,
performanceis a global with themarkmethod (so the hrtime path isn't used), but it does not havegetEntriesByName(so marky.stop throws an exception). Feature detection is now necessary for all the performance methods used :/marky/src/index.js
Line 31 in 9e43c8e
Originally surfaced in GoogleChrome/lighthouse-ci#596