UNPKG

876 BSource Map (JSON)View Raw
1{"version":3,"sources":["../source/ParseError.js"],"names":["ParseError","code","name","constructor","message","stack","Error","prototype","Object","create"],"mappings":";;;;;;;;;AAAA;IACqBA,U,GACnB,oBAAYC,IAAZ,EAAkB;AAAA;;AAChB,OAAKC,IAAL,GAAY,KAAKC,WAAL,CAAiBD,IAA7B;AACA,OAAKE,OAAL,GAAeH,IAAf;AACA,OAAKI,KAAL,GAAc,IAAIC,KAAJ,CAAUL,IAAV,CAAD,CAAkBI,KAA/B;AACD,C;;;AAGHL,UAAU,CAACO,SAAX,GAAuBC,MAAM,CAACC,MAAP,CAAcH,KAAK,CAACC,SAApB,CAAvB;AACAP,UAAU,CAACO,SAAX,CAAqBJ,WAArB,GAAmCH,UAAnC","sourcesContent":["// https://stackoverflow.com/a/46971044/970769\r\nexport default class ParseError {\r\n constructor(code) {\r\n this.name = this.constructor.name\r\n this.message = code\r\n this.stack = (new Error(code)).stack\r\n }\r\n}\r\n\r\nParseError.prototype = Object.create(Error.prototype)\r\nParseError.prototype.constructor = ParseError"],"file":"ParseError.js"}
\No newline at end of file