diff options
author | Martin Fischer <martin@push-f.com> | 2023-06-26 15:10:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 09:10:27 -0400 |
commit | 801b9ec62d94f201e67d053ee90dae0b70e50a42 (patch) | |
tree | 145f840c570dd72258ef309e9d31f100a5aa5786 /ext/node/polyfills/internal/fs | |
parent | ad3c494b46c97f0cf91098b7ec2afa576ea7a3dd (diff) |
chore: fix typos (#19572)
Diffstat (limited to 'ext/node/polyfills/internal/fs')
-rw-r--r-- | ext/node/polyfills/internal/fs/handle.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/node/polyfills/internal/fs/handle.ts b/ext/node/polyfills/internal/fs/handle.ts index fbe535840..e04e8e7b7 100644 --- a/ext/node/polyfills/internal/fs/handle.ts +++ b/ext/node/polyfills/internal/fs/handle.ts @@ -86,13 +86,13 @@ export class FileHandle extends EventEmitter { ): Promise<WriteResult>; write( bufferOrStr: Buffer | string, - offsetOrPotition: number, + offsetOrPosition: number, lengthOrEncoding: number | string, position?: number, ): Promise<WriteResult> { if (bufferOrStr instanceof Buffer) { const buffer = bufferOrStr; - const offset = offsetOrPotition; + const offset = offsetOrPosition; const length = lengthOrEncoding; return new Promise((resolve, reject) => { @@ -110,7 +110,7 @@ export class FileHandle extends EventEmitter { }); } else { const str = bufferOrStr; - const position = offsetOrPotition; + const position = offsetOrPosition; const encoding = lengthOrEncoding; return new Promise((resolve, reject) => { |