decord/source/169__isNativeReflectConstruct.js

169 lines
4.6 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 169
// Function ID: 170
// Name: _isNativeReflectConstruct
// Dependencies: [41, 42, 93, 95, 98, 164, 163]
// Module 169 (_isNativeReflectConstruct)
2026-08-24 06:08:38 +00:00
import closure_2 from "_classCallCheck" /* 41 */;
import importDefaultResult from "_createClass" /* 42 */;
import closure_3 from "_possibleConstructorReturn" /* 93 */;
import closure_4 from "_getPrototypeOf" /* 95 */;
import importDefaultResult1 from "_inherits" /* 98 */;
2026-07-29 08:29:29 +00:00
let PerformanceMeasureTemplate = arg1;
function _isNativeReflectConstruct() {
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
2026-08-24 06:08:38 +00:00
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
return closure_0;
2026-08-24 06:08:38 +00:00
};
2026-07-29 08:29:29 +00:00
return _isNativeReflectConstruct();
} catch (err) {
}
}
class PerformanceMarkTemplate {
constructor(arg0, arg1) {
self = this;
tmp = PerformanceMeasureTemplate;
2026-08-24 06:08:38 +00:00
tmp2 = closure_2(this, PerformanceMeasureTemplate);
2026-07-29 08:29:29 +00:00
obj = { name: global, startTime: null, duration: 0 };
startTime = undefined;
if (arg1 != null) {
startTime = arg1.startTime;
}
if (startTime == null) {
tmp4 = PerformanceMeasureTemplate;
tmp5 = closure_1;
obj2 = require("warnNoNativePerformance");
startTime = obj2.getCurrentTimeStamp();
}
obj[1] = startTime;
items = ["mark"];
items[1] = obj;
2026-08-24 06:08:38 +00:00
tmp6 = closure_4;
obj3 = closure_4(tmp);
tmp7 = closure_3;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
tmp9 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj3, items, tmp6(self).constructor);
} else {
constructResult = obj3.apply(self, items);
}
tmp7Result = tmp7(self, constructResult);
detail = undefined;
if (arg1 != null) {
detail = arg1.detail;
}
if (detail == null) {
detail = null;
}
tmp7Result.__detail = detail;
return tmp7Result;
}
}
PerformanceMeasureTemplate = PerformanceMarkTemplate;
importDefaultResult1(PerformanceMarkTemplate, require("PerformanceEntry").PerformanceEntry);
let obj = {
key: "detail",
get() {
return this.__detail;
}
};
let items = [obj];
class PerformanceMark {
constructor(arg0, arg1) {
obj = { __entryType: "mark", __name: global };
startTime = undefined;
if (arg1 != null) {
startTime = arg1.startTime;
}
if (startTime == null) {
tmp2 = PerformanceMeasureTemplate;
tmp3 = closure_1;
obj2 = require("warnNoNativePerformance");
startTime = obj2.getCurrentTimeStamp();
}
obj.__startTime = startTime;
obj.__duration = 0;
detail = undefined;
if (arg1 != null) {
detail = arg1.detail;
}
if (detail == null) {
detail = null;
}
obj.__detail = detail;
return;
}
}
PerformanceMark.prototype = importDefaultResult(PerformanceMarkTemplate, items).prototype;
class PerformanceMeasureTemplate {
constructor(arg0) {
self = this;
2026-08-24 06:08:38 +00:00
tmp = closure_2(this, PerformanceMeasureTemplate);
2026-07-29 08:29:29 +00:00
items = ["measure"];
items[1] = global;
2026-08-24 06:08:38 +00:00
tmp2 = closure_4;
obj = closure_4(PerformanceMeasureTemplate);
tmp3 = closure_3;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items);
}
tmp3Result = tmp3(self, constructResult);
detail = undefined;
if (global != null) {
detail = global.detail;
}
if (detail == null) {
detail = null;
}
tmp3Result.__detail = detail;
return tmp3Result;
}
}
importDefaultResult1(PerformanceMeasureTemplate, require("PerformanceEntry").PerformanceEntry);
obj = {
key: "detail",
get() {
return this.__detail;
}
};
const items1 = [obj];
class PerformanceMeasure {
constructor(arg0) {
obj = { __entryType: "measure", __name: global.name, __startTime: global.startTime, __duration: global.duration };
detail = global.detail;
if (detail == null) {
detail = null;
}
obj.__detail = detail;
return;
}
}
PerformanceMeasure.prototype = importDefaultResult(PerformanceMeasureTemplate, items1).prototype;
class PerformanceMeasure {
constructor() {
typeError = new TypeError("Failed to construct 'PerformanceMeasure': Illegal constructor");
throw typeError;
}
}
PerformanceMeasure.prototype = PerformanceMeasure.prototype;
export { PerformanceMark };
export { PerformanceMeasure };
export const PerformanceMeasure_public = PerformanceMeasure;