diff options
Diffstat (limited to 'cli/js/ops')
-rw-r--r-- | cli/js/ops/compiler.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/dispatch_minimal.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/errors.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs/open.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/fs/stat.ts | 8 | ||||
-rw-r--r-- | cli/js/ops/fs/utime.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs_events.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/net.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/os.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/tty.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/worker_host.ts | 2 |
11 files changed, 17 insertions, 17 deletions
diff --git a/cli/js/ops/compiler.ts b/cli/js/ops/compiler.ts index 0cbde6543..825cadc16 100644 --- a/cli/js/ops/compiler.ts +++ b/cli/js/ops/compiler.ts @@ -24,7 +24,7 @@ export function fetchSourceFiles( > { return sendAsync("op_fetch_source_files", { specifiers, - referrer + referrer, }); } @@ -47,6 +47,6 @@ export function cache( sendSync("op_cache", { extension, moduleId, - contents + contents, }); } diff --git a/cli/js/ops/dispatch_minimal.ts b/cli/js/ops/dispatch_minimal.ts index 61d630240..570463583 100644 --- a/cli/js/ops/dispatch_minimal.ts +++ b/cli/js/ops/dispatch_minimal.ts @@ -54,7 +54,7 @@ export function recordFromBufMinimal(ui8: Uint8Array): RecordMinimal { promiseId, arg, result, - err + err, }; } diff --git a/cli/js/ops/errors.ts b/cli/js/ops/errors.ts index 39793a85d..5b65d102a 100644 --- a/cli/js/ops/errors.ts +++ b/cli/js/ops/errors.ts @@ -21,11 +21,11 @@ export function applySourceMap(location: Location): Location { const res = sendSync("op_apply_source_map", { filename, line: line - 1, - column: column - 1 + column: column - 1, }); return { filename: res.filename, line: res.line + 1, - column: res.column + 1 + column: res.column + 1, }; } diff --git a/cli/js/ops/fs/open.ts b/cli/js/ops/fs/open.ts index 87696935f..b587f491d 100644 --- a/cli/js/ops/fs/open.ts +++ b/cli/js/ops/fs/open.ts @@ -36,6 +36,6 @@ export function open( path, options, openMode, - mode + mode, }); } diff --git a/cli/js/ops/fs/stat.ts b/cli/js/ops/fs/stat.ts index 20ca3e6b1..f455484c1 100644 --- a/cli/js/ops/fs/stat.ts +++ b/cli/js/ops/fs/stat.ts @@ -25,7 +25,7 @@ export interface StatResponse { export async function lstat(path: string): Promise<FileInfo> { const res = (await sendAsync("op_stat", { path, - lstat: true + lstat: true, })) as StatResponse; return new FileInfoImpl(res); } @@ -33,7 +33,7 @@ export async function lstat(path: string): Promise<FileInfo> { export function lstatSync(path: string): FileInfo { const res = sendSync("op_stat", { path, - lstat: true + lstat: true, }) as StatResponse; return new FileInfoImpl(res); } @@ -41,7 +41,7 @@ export function lstatSync(path: string): FileInfo { export async function stat(path: string): Promise<FileInfo> { const res = (await sendAsync("op_stat", { path, - lstat: false + lstat: false, })) as StatResponse; return new FileInfoImpl(res); } @@ -49,7 +49,7 @@ export async function stat(path: string): Promise<FileInfo> { export function statSync(path: string): FileInfo { const res = sendSync("op_stat", { path, - lstat: false + lstat: false, }) as StatResponse; return new FileInfoImpl(res); } diff --git a/cli/js/ops/fs/utime.ts b/cli/js/ops/fs/utime.ts index 13cac8cb6..cd195531c 100644 --- a/cli/js/ops/fs/utime.ts +++ b/cli/js/ops/fs/utime.ts @@ -14,7 +14,7 @@ export function utimeSync( path, // TODO(ry) split atime, mtime into [seconds, nanoseconds] tuple atime: toSecondsFromEpoch(atime), - mtime: toSecondsFromEpoch(mtime) + mtime: toSecondsFromEpoch(mtime), }); } @@ -27,6 +27,6 @@ export async function utime( path, // TODO(ry) split atime, mtime into [seconds, nanoseconds] tuple atime: toSecondsFromEpoch(atime), - mtime: toSecondsFromEpoch(mtime) + mtime: toSecondsFromEpoch(mtime), }); } diff --git a/cli/js/ops/fs_events.ts b/cli/js/ops/fs_events.ts index 4c08995b8..30a74f291 100644 --- a/cli/js/ops/fs_events.ts +++ b/cli/js/ops/fs_events.ts @@ -17,7 +17,7 @@ class FsEvents implements AsyncIterableIterator<FsEvent> { next(): Promise<IteratorResult<FsEvent>> { return sendAsync("op_fs_events_poll", { - rid: this.rid + rid: this.rid, }); } diff --git a/cli/js/ops/net.ts b/cli/js/ops/net.ts index 7734e8811..369f2ca3c 100644 --- a/cli/js/ops/net.ts +++ b/cli/js/ops/net.ts @@ -19,7 +19,7 @@ export enum ShutdownMode { // Corresponding to SHUT_RD, SHUT_WR, SHUT_RDWR Read = 0, Write, - ReadWrite // unused + ReadWrite, // unused } export function shutdown(rid: number, how: ShutdownMode): void { diff --git a/cli/js/ops/os.ts b/cli/js/ops/os.ts index d2fa4f2bb..e01718c8c 100644 --- a/cli/js/ops/os.ts +++ b/cli/js/ops/os.ts @@ -40,7 +40,7 @@ export function env( set(obj, prop: string, value: string): boolean { setEnv(prop, value); return Reflect.set(obj, prop, value); - } + }, }); } diff --git a/cli/js/ops/tty.ts b/cli/js/ops/tty.ts index 2d5649623..f848d2774 100644 --- a/cli/js/ops/tty.ts +++ b/cli/js/ops/tty.ts @@ -7,6 +7,6 @@ export function isatty(rid: number): boolean { export function setRaw(rid: number, mode: boolean): void { sendSync("op_set_raw", { rid, - mode + mode, }); } diff --git a/cli/js/ops/worker_host.ts b/cli/js/ops/worker_host.ts index 0b9f81795..d483a5313 100644 --- a/cli/js/ops/worker_host.ts +++ b/cli/js/ops/worker_host.ts @@ -12,7 +12,7 @@ export function createWorker( specifier, hasSourceCode, sourceCode, - name + name, }); } |