source: imaps-frontend/node_modules/@babel/runtime/helpers/createSuper.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 639 bytes
Line 
1var getPrototypeOf = require("./getPrototypeOf.js");
2var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
3var possibleConstructorReturn = require("./possibleConstructorReturn.js");
4function _createSuper(t) {
5 var r = isNativeReflectConstruct();
6 return function () {
7 var e,
8 o = getPrototypeOf(t);
9 if (r) {
10 var s = getPrototypeOf(this).constructor;
11 e = Reflect.construct(o, arguments, s);
12 } else e = o.apply(this, arguments);
13 return possibleConstructorReturn(this, e);
14 };
15}
16module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
Note: See TracBrowser for help on using the repository browser.