decord/source/7577__isNativeReflectConstruct.js

63 lines
1.7 KiB
JavaScript
Raw Normal View History

2026-08-14 17:33:39 +00:00
// Module ID: 7577
// Function ID: 7578
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-11 06:20:06 +00:00
// Dependencies: [42, 41, 93, 95, 98, 158]
2026-07-29 08:29:29 +00:00
2026-08-14 17:33:39 +00:00
// Module 7577 (_isNativeReflectConstruct)
2026-07-29 08:29:29 +00:00
import _createClass from "_createClass";
2026-08-11 06:20:06 +00:00
import _classCallCheck from "_classCallCheck";
import "_possibleConstructorReturn";
2026-07-29 08:29:29 +00:00
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
2026-08-11 06:20:06 +00:00
import _wrapNativeSuper from "_wrapNativeSuper";
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);
}
let closure_0 = !callResult;
function _isNativeReflectConstruct() {
return closure_0;
}
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-08-11 06:20:06 +00:00
class SentryError {
2026-07-29 08:29:29 +00:00
constructor(arg0) {
2026-08-11 06:20:06 +00:00
str = require;
if (require === undefined) {
str = "warn";
}
2026-07-29 08:29:29 +00:00
self = this;
2026-08-11 06:20:06 +00:00
tmp = SentryError(this, SentryError);
2026-07-29 08:29:29 +00:00
items = [];
items[0] = global;
2026-08-11 06:20:06 +00:00
tmp2 = outer1_2;
obj = outer1_2(SentryError);
tmp3 = outer1_1;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
2026-08-11 06:20:06 +00:00
tmp5 = globalThis;
2026-07-29 08:29:29 +00:00
_Reflect = Reflect;
2026-08-11 06:20:06 +00:00
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-08-11 06:20:06 +00:00
constructResult = obj.apply(self, items);
2026-07-29 08:29:29 +00:00
}
2026-08-11 06:20:06 +00:00
tmp3Result = tmp3(self, constructResult);
tmp3Result.message = global;
tmp3Result.logLevel = str;
return tmp3Result;
2026-07-29 08:29:29 +00:00
}
}
2026-08-11 06:20:06 +00:00
_classCallCheck = SentryError;
_inherits(SentryError, _wrapNativeSuper(Error));
2026-07-29 08:29:29 +00:00
2026-08-11 06:20:06 +00:00
export const SentryError = _createClass(SentryError);