You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
639 B

1 month ago
  1. var getPrototypeOf = require("./getPrototypeOf.js");
  2. var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
  3. var possibleConstructorReturn = require("./possibleConstructorReturn.js");
  4. function _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. }
  16. module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;