diff options
Diffstat (limited to 'runtime/js/40_diagnostics.js')
-rw-r--r-- | runtime/js/40_diagnostics.js | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/runtime/js/40_diagnostics.js b/runtime/js/40_diagnostics.js index 6939b5204..669a54263 100644 --- a/runtime/js/40_diagnostics.js +++ b/runtime/js/40_diagnostics.js @@ -3,22 +3,17 @@ // Diagnostic provides an abstraction for advice/errors received from a // compiler, which is strongly influenced by the format of TypeScript // diagnostics. -"use strict"; -((window) => { - const DiagnosticCategory = { - 0: "Warning", - 1: "Error", - 2: "Suggestion", - 3: "Message", +const DiagnosticCategory = { + 0: "Warning", + 1: "Error", + 2: "Suggestion", + 3: "Message", - Warning: 0, - Error: 1, - Suggestion: 2, - Message: 3, - }; + Warning: 0, + Error: 1, + Suggestion: 2, + Message: 3, +}; - window.__bootstrap.diagnostics = { - DiagnosticCategory, - }; -})(this); +export { DiagnosticCategory }; |