Adding _* variant exports that are explicit polyfills to allow mixed usage. (important: constructor is also only possible via polyfill and not with natives)
The polyfilled _Performance class also now prefers globalThis.performance.now if available (and timeOrigin of instance is unchanged or 0 in worked)
Continuation to #213
Adding
_*
variant exports that are explicit polyfills to allow mixed usage. (important: constructor is also only possible via polyfill and not with natives)The polyfilled
_Performance
class also now prefersglobalThis.performance.now
if available (andtimeOrigin
of instance is unchanged or 0 in worked)Credits to @IgorMinar for ideas in https://github.com/unjs/unenv/pull/209#issuecomment-2130393653 by