diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-03-29 04:03:49 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 13:03:49 -0400 |
commit | bced52505f32d6cca4f944bb610a8a26767908a8 (patch) | |
tree | da49a5df4b7bd6f8306248069228cd6bd0db1303 /deno_typescript/compiler_main.js | |
parent | 1397b8e0e7c85762e19d88fde103342bfa563360 (diff) |
Update to Prettier 2 and use ES Private Fields (#4498)
Diffstat (limited to 'deno_typescript/compiler_main.js')
-rw-r--r-- | deno_typescript/compiler_main.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deno_typescript/compiler_main.js b/deno_typescript/compiler_main.js index 781550246..234ed6002 100644 --- a/deno_typescript/compiler_main.js +++ b/deno_typescript/compiler_main.js @@ -93,7 +93,7 @@ function decodeAscii(ui8) { * @param {string} str */ function encode(str) { - const charCodes = str.split("").map(c => c.charCodeAt(0)); + const charCodes = str.split("").map((c) => c.charCodeAt(0)); const ui8 = new Uint8Array(charCodes); return ui8; } @@ -185,7 +185,7 @@ class Host { const { sourceCode } = dispatch("op_load_module", { moduleUrl, languageVersion, - shouldCreateNewSourceFile + shouldCreateNewSourceFile, }); const sourceFile = ts.createSourceFile( @@ -260,10 +260,10 @@ class Host { /** @type {string[]} */ const resolvedNames = dispatch("op_resolve_module_names", { moduleNames, - containingFile + containingFile, }); /** @type {ts.ResolvedModule[]} */ - const r = resolvedNames.map(resolvedFileName => { + const r = resolvedNames.map((resolvedFileName) => { const extension = getExtension(resolvedFileName); if (!moduleMap.has(resolvedFileName)) { // If we match the external specifier regex, we will then create an internal @@ -299,7 +299,7 @@ function configure(configurationText) { ); return { options, - diagnostics: errors.length ? errors : undefined + diagnostics: errors.length ? errors : undefined, }; } |