decord/source/162__wrapNativeSuper.js

70 lines
2 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 162
// Function ID: 2470
// Name: _wrapNativeSuper
2026-07-23 10:11:24 +00:00
// Dependencies: [163, 164, 17, 19]
2026-07-20 16:05:17 +00:00
// Module 162 (_wrapNativeSuper)
function _wrapNativeSuper(arg0) {
let map;
if ("function" === typeof Map) {
const _Map = Map;
map = new Map();
}
function _wrapNativeSuper(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
class Wrapper {
constructor() {
2026-07-23 10:11:24 +00:00
tmp = c0(outer2_2[1]);
return tmp(closure_0, arguments, c0(outer2_2[2])(this).constructor);
2026-07-20 16:05:17 +00:00
}
}
if (null !== arg0) {
class Wrapper {
constructor() {
2026-07-23 10:11:24 +00:00
tmp = c0(outer2_2[1]);
return tmp(closure_0, arguments, c0(outer2_2[2])(this).constructor);
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
if (map(outer1_2[0])(arg0)) {
2026-07-20 16:05:17 +00:00
if ("function" !== typeof arg0) {
const _TypeError = TypeError;
class Wrapper {
constructor() {
2026-07-23 10:11:24 +00:00
tmp = c0(outer2_2[1]);
return tmp(closure_0, arguments, c0(outer2_2[2])(this).constructor);
2026-07-20 16:05:17 +00:00
}
}
const typeError = new TypeError("Super expression must either be null or a function");
throw typeError;
} else {
2026-07-23 10:11:24 +00:00
if (undefined !== closure_0) {
2026-07-20 16:05:17 +00:00
class Wrapper {
constructor() {
2026-07-23 10:11:24 +00:00
tmp = c0(outer2_2[1]);
return tmp(closure_0, arguments, c0(outer2_2[2])(this).constructor);
2026-07-20 16:05:17 +00:00
}
}
}
class Wrapper {
constructor() {
2026-07-23 10:11:24 +00:00
tmp = c0(outer2_2[1]);
return tmp(closure_0, arguments, c0(outer2_2[2])(this).constructor);
2026-07-20 16:05:17 +00:00
}
}
const _Object = Object;
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { value: Wrapper, enumerable: false, writable: true, configurable: true };
2026-07-20 16:05:17 +00:00
obj.constructor = obj;
Wrapper.prototype = Object.create(arg0.prototype, obj);
2026-07-23 10:11:24 +00:00
return map(outer1_2[3])(Wrapper, arg0);
2026-07-20 16:05:17 +00:00
}
}
}
return arg0;
}
module.exports = _wrapNativeSuper;
return _wrapNativeSuper(arg0);
}
export default _wrapNativeSuper;