diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-09-22 01:03:39 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-25 17:02:49 -0400 |
commit | 7fb28219375b52f3055e79d9d9b103a08dbb0790 (patch) | |
tree | ca7f84d6c65194596182cc7e14a5f2db49eb0561 /js | |
parent | a6f6d0b7126ae53347bf41ad8751bfdce400e271 (diff) |
format
Diffstat (limited to 'js')
-rw-r--r-- | js/compiler.ts | 8 | ||||
-rw-r--r-- | js/compiler_test.ts | 16 | ||||
-rw-r--r-- | js/read_link.ts | 4 |
3 files changed, 17 insertions, 11 deletions
diff --git a/js/compiler.ts b/js/compiler.ts index f0f82ffb1..cf4d1906a 100644 --- a/js/compiler.ts +++ b/js/compiler.ts @@ -418,10 +418,10 @@ export class DenoCompiler */ compile(moduleMetaData: ModuleMetaData): OutputCode { const recompile = !!this.recompile; - this._log( - "compiler.compile", - { filename: moduleMetaData.fileName, recompile } - ); + this._log("compiler.compile", { + filename: moduleMetaData.fileName, + recompile + }); if (!recompile && moduleMetaData.outputCode) { return moduleMetaData.outputCode; } diff --git a/js/compiler_test.ts b/js/compiler_test.ts index fef18ec3d..e3be535bd 100644 --- a/js/compiler_test.ts +++ b/js/compiler_test.ts @@ -461,16 +461,24 @@ test(function compilerGetScriptFileNames() { test(function compilerRecompileFlag() { setup(); compilerInstance.run("foo/bar.ts", "/root/project"); - assertEqual(getEmitOutputStack.length, 1, "Expected only a single emitted file."); + assertEqual( + getEmitOutputStack.length, + 1, + "Expected only a single emitted file." + ); // running compiler against same file should use cached code compilerInstance.run("foo/bar.ts", "/root/project"); - assertEqual(getEmitOutputStack.length, 1, "Expected only a single emitted file."); + assertEqual( + getEmitOutputStack.length, + 1, + "Expected only a single emitted file." + ); compilerInstance.recompile = true; compilerInstance.run("foo/bar.ts", "/root/project"); assertEqual(getEmitOutputStack.length, 2, "Expected two emitted file."); assert( - getEmitOutputStack[0] === getEmitOutputStack[1], - "Expected same file to be emitted twice." + getEmitOutputStack[0] === getEmitOutputStack[1], + "Expected same file to be emitted twice." ); teardown(); }); diff --git a/js/read_link.ts b/js/read_link.ts index 6bd613389..38db09d62 100644 --- a/js/read_link.ts +++ b/js/read_link.ts @@ -24,9 +24,7 @@ export async function readlink(name: string): Promise<string> { return res(await dispatch.sendAsync(...req(name))); } -function req( - name: string -): [flatbuffers.Builder, fbs.Any, flatbuffers.Offset] { +function req(name: string): [flatbuffers.Builder, fbs.Any, flatbuffers.Offset] { const builder = new flatbuffers.Builder(); const name_ = builder.createString(name); fbs.Readlink.startReadlink(builder); |