decord/source/7833__isNativeReflectConstruct.js

62 lines
1.7 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7833
// Function ID: 7834
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-24 06:08:38 +00:00
// Module 7833 (_isNativeReflectConstruct)
import _createClass from "_createClass" /* 42 */;
import SentryError from "_classCallCheck" /* 41 */;
import closure_1 from "_possibleConstructorReturn" /* 93 */;
import closure_2 from "_getPrototypeOf" /* 95 */;
import _inherits from "_inherits" /* 98 */;
import _wrapNativeSuper from "_wrapNativeSuper" /* 158 */;
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-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-24 06:08:38 +00:00
tmp2 = closure_2;
obj = closure_2(SentryError);
tmp3 = closure_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
_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);