diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /cli/js/ops/dispatch_minimal.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/js/ops/dispatch_minimal.ts')
-rw-r--r-- | cli/js/ops/dispatch_minimal.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/ops/dispatch_minimal.ts b/cli/js/ops/dispatch_minimal.ts index ca50b00e9..cc1d97e20 100644 --- a/cli/js/ops/dispatch_minimal.ts +++ b/cli/js/ops/dispatch_minimal.ts @@ -37,7 +37,7 @@ export function recordFromBufMinimal(ui8: Uint8Array): RecordMinimal { const buf32 = new Int32Array( header.buffer, header.byteOffset, - header.byteLength / 4 + header.byteLength / 4, ); const promiseId = buf32[0]; const arg = buf32[1]; @@ -71,7 +71,7 @@ const scratch32 = new Int32Array(3); const scratchBytes = new Uint8Array( scratch32.buffer, scratch32.byteOffset, - scratch32.byteLength + scratch32.byteLength, ); util.assert(scratchBytes.byteLength === scratch32.length * 4); @@ -87,7 +87,7 @@ export function asyncMsgFromRust(ui8: Uint8Array): void { export async function sendAsyncMinimal( opName: string, arg: number, - zeroCopy: Uint8Array + zeroCopy: Uint8Array, ): Promise<number> { const promiseId = nextPromiseId(); // AKA cmdId scratch32[0] = promiseId; @@ -111,7 +111,7 @@ export async function sendAsyncMinimal( export function sendSyncMinimal( opName: string, arg: number, - zeroCopy: Uint8Array + zeroCopy: Uint8Array, ): number { scratch32[0] = 0; // promiseId 0 indicates sync scratch32[1] = arg; |