UNPKG

libphonenumber-js

Version:

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript

15 lines (12 loc) 561 B
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; }; export { ParseError as default }; ParseError.prototype = Object.create(Error.prototype); ParseError.prototype.constructor = ParseError; //# sourceMappingURL=ParseError.js.map