decord/source/6702__isNativeReflectConstruct.js

73 lines
1.9 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6702
// Function ID: 6703
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-24 06:08:38 +00:00
// Dependencies: [41, 42, 93, 95, 98, 19]
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
// Module 6702 (_isNativeReflectConstruct)
import _inheritsDefault from "_inherits" /* 98 */;
import Stop from "_classCallCheck" /* 41 */;
import closure_1 from "_possibleConstructorReturn" /* 93 */;
import closure_2 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
2026-07-29 08:29:29 +00:00
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) {
}
}
2026-08-24 06:08:38 +00:00
class Stop {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-08-14 17:33:39 +00:00
items = [...arguments];
2026-08-24 06:08:38 +00:00
closure_0 = undefined;
tmp = Stop(this, closure_0);
2026-08-14 17:33:39 +00:00
items1 = [...items];
2026-08-24 06:08:38 +00:00
tmp2 = closure_2;
obj = closure_2(closure_0);
tmp3 = closure_1;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
2026-08-14 17:33:39 +00:00
tmp5 = globalThis;
2026-07-29 08:29:29 +00:00
_Reflect = Reflect;
2026-08-14 17:33:39 +00:00
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-08-14 17:33:39 +00:00
constructResult = obj.apply(self, items1);
2026-07-29 08:29:29 +00:00
}
2026-08-14 17:33:39 +00:00
tmp3Result = tmp3(self, constructResult);
2026-08-24 06:08:38 +00:00
closure_0 = tmp3Result;
2026-08-14 17:33:39 +00:00
tmp3Result.setNativeProps = () => {
2026-08-24 06:08:38 +00:00
const parent = props.props.parent;
2026-08-14 17:33:39 +00:00
if (parent) {
parent.forceUpdate();
}
};
return tmp3Result;
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
_inheritsDefault(Stop, require("noop").Component);
2026-08-14 17:33:39 +00:00
let items = [
2026-07-29 08:29:29 +00:00
{
key: "render",
value: function render() {
2026-08-14 17:33:39 +00:00
return null;
2026-07-29 08:29:29 +00:00
}
}
];
2026-08-24 06:08:38 +00:00
const importDefaultResultResult = importDefaultResult(Stop, items);
importDefaultResultResult.displayName = "Stop";
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;