(msg, code = 'INTERNAL_ERROR', data)
| 9 | |
| 10 | export class MvError extends Error { |
| 11 | constructor(msg, code = 'INTERNAL_ERROR', data) { |
| 12 | super(msg); |
| 13 | this.code = code; |
| 14 | if (data !== undefined) { |
| 15 | this.data = data; |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | export function sortAndDeDup(unordered, compFn) { |
nothing calls this directly
no outgoing calls
no test coverage detected