diff options
Diffstat (limited to 'deno_typescript')
-rw-r--r-- | deno_typescript/compiler_main.js | 10 | ||||
-rw-r--r-- | deno_typescript/system_loader.js | 12 |
2 files changed, 11 insertions, 11 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, }; } diff --git a/deno_typescript/system_loader.js b/deno_typescript/system_loader.js index 41748c46e..b5b10af48 100644 --- a/deno_typescript/system_loader.js +++ b/deno_typescript/system_loader.js @@ -12,14 +12,14 @@ let System, __instantiateAsync, __instantiate; System = { register(id, d, f) { r.set(id, { d, f, exp: {} }); - } + }, }; function gC(id, main) { return { id, - import: async id => r.get(id)?.exp, - meta: { url: id, main } + import: async (id) => r.get(id)?.exp, + meta: { url: id, main }, }; } @@ -30,7 +30,7 @@ let System, __instantiateAsync, __instantiate; Object.defineProperty(exp, id, { value, writable: true, - enumerable: true + enumerable: true, }); } }; @@ -73,13 +73,13 @@ let System, __instantiateAsync, __instantiate; return m.exp; } - __instantiateAsync = async m => { + __instantiateAsync = async (m) => { System = __instantiateAsync = __instantiate = undefined; rF(m); return gExpA(m); }; - __instantiate = m => { + __instantiate = (m) => { System = __instantiateAsync = __instantiate = undefined; rF(m); return gExp(m); |