diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2020-09-12 19:53:57 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-12 11:53:57 +0200 |
| commit | 10fbfcbc79eb50cb7669b4aaf67f957d97d8d93b (patch) | |
| tree | 99bbe8fcf2bb554f2203d990252556924e1cc18c /cli/rt | |
| parent | 5276cc85923a1791bf73a91b05c27fbdeeaa6f9b (diff) | |
refactor: improve tsc diagnostics (#7420)
Diffstat (limited to 'cli/rt')
| -rw-r--r-- | cli/rt/40_diagnostics.js | 20 | ||||
| -rw-r--r-- | cli/rt/40_error_stack.js | 4 |
2 files changed, 10 insertions, 14 deletions
diff --git a/cli/rt/40_diagnostics.js b/cli/rt/40_diagnostics.js index 110d3d767..2b7457853 100644 --- a/cli/rt/40_diagnostics.js +++ b/cli/rt/40_diagnostics.js @@ -6,19 +6,15 @@ ((window) => { const DiagnosticCategory = { - 0: "Log", - 1: "Debug", - 2: "Info", - 3: "Error", - 4: "Warning", - 5: "Suggestion", + 0: "Warning", + 1: "Error", + 2: "Suggestion", + 3: "Message", - Log: 0, - Debug: 1, - Info: 2, - Error: 3, - Warning: 4, - Suggestion: 5, + Warning: 0, + Error: 1, + Suggestion: 2, + Message: 3, }; window.__bootstrap.diagnostics = { diff --git a/cli/rt/40_error_stack.js b/cli/rt/40_error_stack.js index 5d1a077ad..2b7c42475 100644 --- a/cli/rt/40_error_stack.js +++ b/cli/rt/40_error_stack.js @@ -8,8 +8,8 @@ const internals = window.__bootstrap.internals; const dispatchJson = window.__bootstrap.dispatchJson; - function opFormatDiagnostics(items) { - return dispatchJson.sendSync("op_format_diagnostic", { items }); + function opFormatDiagnostics(diagnostics) { + return dispatchJson.sendSync("op_format_diagnostic", diagnostics); } function opApplySourceMap(location) { |
