source: trip-planner-front/node_modules/@webassemblyjs/helper-api-error/esm/index.js@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.2 KB
Line 
1function _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); }
2
3function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
5function _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; }
6
7function _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; }
8
9export var RuntimeError =
10/*#__PURE__*/
11function (_Error) {
12 _inherits(RuntimeError, _Error);
13
14 function RuntimeError() {
15 _classCallCheck(this, RuntimeError);
16
17 return _possibleConstructorReturn(this, (RuntimeError.__proto__ || Object.getPrototypeOf(RuntimeError)).apply(this, arguments));
18 }
19
20 return RuntimeError;
21}(Error);
22export var CompileError =
23/*#__PURE__*/
24function (_Error2) {
25 _inherits(CompileError, _Error2);
26
27 function CompileError() {
28 _classCallCheck(this, CompileError);
29
30 return _possibleConstructorReturn(this, (CompileError.__proto__ || Object.getPrototypeOf(CompileError)).apply(this, arguments));
31 }
32
33 return CompileError;
34}(Error);
35export var LinkError =
36/*#__PURE__*/
37function (_Error3) {
38 _inherits(LinkError, _Error3);
39
40 function LinkError() {
41 _classCallCheck(this, LinkError);
42
43 return _possibleConstructorReturn(this, (LinkError.__proto__ || Object.getPrototypeOf(LinkError)).apply(this, arguments));
44 }
45
46 return LinkError;
47}(Error);
Note: See TracBrowser for help on using the repository browser.