"use strict"; var _getPrototypeOf = require("babel-runtime/core-js/object/get-prototype-of"); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck"); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require("babel-runtime/helpers/createClass"); var _createClass3 = _interopRequireDefault(_createClass2); var _possibleConstructorReturn2 = require("babel-runtime/helpers/possibleConstructorReturn"); var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); var _inherits2 = require("babel-runtime/helpers/inherits"); var _inherits3 = _interopRequireDefault(_inherits2); var __babelPluginTransformClassInheritedHook = function __babelPluginTransformClassInheritedHook(child, parent, childName) { if (childName) { Object.defineProperty(child, "name", { value: childName, configurable: true }); } if ("onInherited" in parent) { if (typeof parent.onInherited == 'function') { var returnedNewChild = parent.onInherited(child); if (returnedNewChild !== void 0) { if (childName && typeof returnedNewChild == 'function' && returnedNewChild.name !== childName) { Object.defineProperty(returnedNewChild, "name", { value: childName, configurable: true }); } child = returnedNewChild; } } else { throw new TypeError("Attempted to call onInherited, but it was not a function"); } } return child; }; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var Apple = function () { var _Apple = function (_Fruit) { (0, _inherits3.default)(_Apple, _Fruit); function _Apple() { (0, _classCallCheck3.default)(this, _Apple); return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(_Apple).apply(this, arguments)); } (0, _createClass3.default)(_Apple, [{ key: "tastiness", value: function tastiness() { return 7; } }]); return _Apple; }(Fruit); return __babelPluginTransformClassInheritedHook(_Apple, Fruit, "Apple"); }();