()
| 36 | } |
| 37 | |
| 38 | toString() { |
| 39 | let msg = `${highlight(error(this.name))}: ${this.message}\n` |
| 40 | if (this.sourceFileName && this.sourceFilePosition) { |
| 41 | msg += ` -> ${reset(this.sourceFileName)}:${this.sourceFilePosition.line}:${ |
| 42 | this.sourceFilePosition.character |
| 43 | }\n` |
| 44 | } |
| 45 | return msg |
| 46 | } |
| 47 | |
| 48 | toDebugString() { |
| 49 | return this.toString() + `\n ${this.stack}` |
no outgoing calls
no test coverage detected