25 lines
1.2 KiB
JavaScript
25 lines
1.2 KiB
JavaScript
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = babelHelpers.getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = babelHelpers.getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return babelHelpers.possibleConstructorReturn(this, result); }; }
|
|
|
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
|
|
var Child = /*#__PURE__*/function (_Parent) {
|
|
"use strict";
|
|
|
|
babelHelpers.inherits(Child, _Parent);
|
|
|
|
var _super = _createSuper(Child);
|
|
|
|
function Child() {
|
|
var _this;
|
|
|
|
babelHelpers.classCallCheck(this, Child);
|
|
_this = _super.call(this);
|
|
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(_this), "scopedFunctionWithThis", function () {
|
|
_this.name = {};
|
|
});
|
|
return _this;
|
|
}
|
|
|
|
return Child;
|
|
}(Parent);
|