UNPKG

670 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports["default"] = void 0;
7
8function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
10// https://stackoverflow.com/a/46971044/970769
11var ParseError = function ParseError(code) {
12 _classCallCheck(this, ParseError);
13
14 this.name = this.constructor.name;
15 this.message = code;
16 this.stack = new Error(code).stack;
17};
18
19exports["default"] = ParseError;
20ParseError.prototype = Object.create(Error.prototype);
21ParseError.prototype.constructor = ParseError;
22//# sourceMappingURL=ParseError.js.map
\No newline at end of file