| | |
| | | |
| | | var _template = require("@babel/template"); |
| | | |
| | | var generated = require("./helpers-generated"); |
| | | var _helpersGenerated = require("./helpers-generated"); |
| | | |
| | | const helpers = Object.assign({ |
| | | __proto__: null |
| | | }, generated); |
| | | }, _helpersGenerated.default); |
| | | var _default = helpers; |
| | | exports.default = _default; |
| | | |
| | |
| | | ast: () => _template.default.program.ast(tpl) |
| | | }); |
| | | |
| | | helpers.asyncIterator = helper("7.0.0-beta.0")` |
| | | export default function _asyncIterator(iterable) { |
| | | var method; |
| | | if (typeof Symbol !== "undefined") { |
| | | if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator]; |
| | | if (method == null && Symbol.iterator) method = iterable[Symbol.iterator]; |
| | | } |
| | | if (method == null) method = iterable["@@asyncIterator"]; |
| | | if (method == null) method = iterable["@@iterator"] |
| | | if (method == null) throw new TypeError("Object is not async iterable"); |
| | | return method.call(iterable); |
| | | } |
| | | `; |
| | | helpers.AwaitValue = helper("7.0.0-beta.0")` |
| | | export default function _AwaitValue(value) { |
| | | this.wrapped = value; |
| | |
| | | export default function _createClass(Constructor, protoProps, staticProps) { |
| | | if (protoProps) _defineProperties(Constructor.prototype, protoProps); |
| | | if (staticProps) _defineProperties(Constructor, staticProps); |
| | | Object.defineProperty(Constructor, "prototype", { writable: false }); |
| | | return Constructor; |
| | | } |
| | | `; |
| | |
| | | if (typeof superClass !== "function" && superClass !== null) { |
| | | throw new TypeError("Super expression must either be null or a function"); |
| | | } |
| | | // We can't use defineProperty to set the prototype in a single step because it |
| | | // doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056 |
| | | // V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334 |
| | | subClass.prototype = Object.create(superClass && superClass.prototype, { |
| | | constructor: { |
| | | value: subClass, |
| | |
| | | configurable: true |
| | | } |
| | | }); |
| | | Object.defineProperty(subClass, "prototype", { writable: false }); |
| | | if (superClass) setPrototypeOf(subClass, superClass); |
| | | } |
| | | `; |
| | |
| | | helpers.get = helper("7.0.0-beta.0")` |
| | | import superPropBase from "superPropBase"; |
| | | |
| | | export default function _get(target, property, receiver) { |
| | | export default function _get() { |
| | | if (typeof Reflect !== "undefined" && Reflect.get) { |
| | | _get = Reflect.get; |
| | | } else { |
| | |
| | | |
| | | var desc = Object.getOwnPropertyDescriptor(base, property); |
| | | if (desc.get) { |
| | | return desc.get.call(receiver); |
| | | // STEP 3. If receiver is not present, then set receiver to target. |
| | | return desc.get.call(arguments.length < 3 ? target : receiver); |
| | | } |
| | | |
| | | return desc.value; |
| | | }; |
| | | } |
| | | return _get(target, property, receiver || target); |
| | | return _get.apply(this, arguments); |
| | | } |
| | | `; |
| | | helpers.set = helper("7.0.0-beta.0")` |
| | |
| | | throw new TypeError("attempted to reassign private method"); |
| | | } |
| | | `; |
| | | } |
| | | } |
| | | helpers.identity = helper("7.17.0")` |
| | | export default function _identity(x) { |
| | | return x; |
| | | } |
| | | `; |