/
var
/
www
/
cobraambalaj
/
node_modules
/
@babel
/
runtime
/
helpers
/
wrapNativeSuper
/
/var/www/cobraambalaj/node_modules/@babel/runtime/helpers/wrapNativeSuper
mkdir
upload
Name
Size
Mode
Actions
index.js
1371
0644
edit
dl
rm
_index.mjs
1159
0644
edit
dl
rm
Edit:
/var/www/cobraambalaj/node_modules/@babel/runtime/helpers/wrapNativeSuper/_index.mjs
(1159B)
import getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import setPrototypeOf from "@babel/runtime/helpers/setPrototypeOf"; import isNativeFunction from "@babel/runtime/helpers/isNativeFunction"; import construct from "@babel/runtime/helpers/construct"; export default function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return construct(Class, arguments, getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
Save
cmd:
run