(text, path, line, eventType = 'print')
| 390 | } |
| 391 | |
| 392 | print(text, path, line, eventType = 'print') { |
| 393 | const payload = { text }; |
| 394 | if (path !== undefined && path !== null) payload.path = path; |
| 395 | if (line !== undefined && line !== null) payload.line = parseInt(line); |
| 396 | this.report(eventType, payload, undefined, (data) => { |
| 397 | this.clearLine(); |
| 398 | let out = data.text; |
| 399 | if (data.path) out = `${data.path} (${data.line}) ${out}`; |
| 400 | if (this.id !== undefined) out = `[Thread ${this.id}] ${out}`; |
| 401 | console.log(out); |
| 402 | this.showPrompt(); |
| 403 | }); |
| 404 | } |
| 405 | |
| 406 | commandError(message) { |
| 407 | const cmd = this.currentCommand || 'error'; |
no test coverage detected