libphonenumber-js
Version:
A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
22 lines (17 loc) • 670 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
// https://stackoverflow.com/a/46971044/970769
var ParseError = function ParseError(code) {
_classCallCheck(this, ParseError);
this.name = this.constructor.name;
this.message = code;
this.stack = new Error(code).stack;
};
exports["default"] = ParseError;
ParseError.prototype = Object.create(Error.prototype);
ParseError.prototype.constructor = ParseError;
//# sourceMappingURL=ParseError.js.map
;