Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
53 lines
1.6 KiB
JavaScript
53 lines
1.6 KiB
JavaScript
// Module ID: 158
|
|
// Function ID: 159
|
|
// Name: _wrapNativeSuper
|
|
// Dependencies: [159, 160, 95, 99]
|
|
|
|
// Module 158 (_wrapNativeSuper)
|
|
import _isNativeFunction from "_isNativeFunction" /* 159 */;
|
|
|
|
function _wrapNativeSuper(fn) {
|
|
let map;
|
|
if (typeof Map === "function") {
|
|
const _Map = Map;
|
|
map = new Map();
|
|
}
|
|
_wrapNativeSuper = function _wrapNativeSuper(fn) {
|
|
if (null !== fn) {
|
|
if (_isNativeFunction(fn)) {
|
|
if (typeof fn !== "function") {
|
|
const _TypeError = TypeError;
|
|
const typeError = new TypeError("Super expression must either be null or a function");
|
|
throw typeError;
|
|
} else {
|
|
class Wrapper {
|
|
constructor() {
|
|
tmp = closure_0(closure_2_2[1]);
|
|
return tmp(closure_0, arguments, closure_0(closure_2_2[2])(this).constructor);
|
|
}
|
|
}
|
|
if (undefined !== map) {
|
|
class Wrapper {
|
|
constructor() {
|
|
tmp = closure_0(closure_2_2[1]);
|
|
return tmp(closure_0, arguments, closure_0(closure_2_2[2])(this).constructor);
|
|
}
|
|
}
|
|
}
|
|
const _Object = Object;
|
|
const obj = { constructor: null };
|
|
const obj2 = { value: Wrapper, enumerable: false, writable: true, configurable: true };
|
|
obj.constructor = obj2;
|
|
Wrapper.prototype = Object.create(fn.prototype, obj);
|
|
return tmp7(99)(Wrapper, fn);
|
|
}
|
|
}
|
|
tmp7 = require;
|
|
}
|
|
return fn;
|
|
};
|
|
module.exports = _wrapNativeSuper;
|
|
return _wrapNativeSuper(fn);
|
|
}
|
|
|
|
export default _wrapNativeSuper;
|