'use strict';
(({ performanceNow, performanceTimeOrigin }) => {
const performance = {
now() {
return performanceNow();
},
get timeOrigin() {
return performanceTimeOrigin();
},
toJSON() {
return {
timeOrigin: this.timeOrigin,
};
},
};
Object.defineProperty(globalThis, 'performance', {
value: performance,
writable: false,
enumerable: true,
configurable: false,
});
});