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.

index.js 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.LinkError = exports.CompileError = exports.RuntimeError = void 0;
  6. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  7. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  8. function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
  9. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  10. var RuntimeError =
  11. /*#__PURE__*/
  12. function (_Error) {
  13. _inherits(RuntimeError, _Error);
  14. function RuntimeError() {
  15. _classCallCheck(this, RuntimeError);
  16. return _possibleConstructorReturn(this, (RuntimeError.__proto__ || Object.getPrototypeOf(RuntimeError)).apply(this, arguments));
  17. }
  18. return RuntimeError;
  19. }(Error);
  20. exports.RuntimeError = RuntimeError;
  21. var CompileError =
  22. /*#__PURE__*/
  23. function (_Error2) {
  24. _inherits(CompileError, _Error2);
  25. function CompileError() {
  26. _classCallCheck(this, CompileError);
  27. return _possibleConstructorReturn(this, (CompileError.__proto__ || Object.getPrototypeOf(CompileError)).apply(this, arguments));
  28. }
  29. return CompileError;
  30. }(Error);
  31. exports.CompileError = CompileError;
  32. var LinkError =
  33. /*#__PURE__*/
  34. function (_Error3) {
  35. _inherits(LinkError, _Error3);
  36. function LinkError() {
  37. _classCallCheck(this, LinkError);
  38. return _possibleConstructorReturn(this, (LinkError.__proto__ || Object.getPrototypeOf(LinkError)).apply(this, arguments));
  39. }
  40. return LinkError;
  41. }(Error);
  42. exports.LinkError = LinkError;