decord/source/163_PerformanceEntry.js
2026-08-24 06:08:38 +00:00

62 lines
1.4 KiB
JavaScript

// Module ID: 163
// Function ID: 164
// Name: PerformanceEntry
// Dependencies: [41, 42, 126]
// Module 163 (PerformanceEntry)
import _createClassDefault from "_createClass" /* 42 */;
import PerformanceEntry from "_classCallCheck" /* 41 */;
import setPlatformObject from "setPlatformObject" /* 126 */;
class PerformanceEntry {
constructor(arg0, arg1) {
tmp = PerformanceEntry(this, PerformanceEntry);
this.__entryType = global;
({ name: this.__name, startTime: this.__startTime, duration: this.__duration } = arg1);
return;
}
}
const items = [
{
key: "name",
get() {
return this.__name;
}
},
{
key: "entryType",
get() {
return this.__entryType;
}
},
{
key: "startTime",
get() {
return this.__startTime;
}
},
{
key: "duration",
get() {
return this.__duration;
}
},
{
key: "toJSON",
value: function toJSON() {
return { name: this.__name, entryType: this.__entryType, startTime: this.__startTime, duration: this.__duration };
}
}
];
const tmp2 = _createClassDefault(PerformanceEntry, items);
class PerformanceEntry {
constructor() {
typeError = new TypeError("Failed to construct 'PerformanceEntry': Illegal constructor");
throw typeError;
}
}
PerformanceEntry.prototype = tmp2.prototype;
setPlatformObject.setPlatformObject(tmp2);
export const PerformanceEntry = tmp2;
export const PerformanceEntry_public = PerformanceEntry;