summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/fs/handle.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/fs/handle.ts')
-rw-r--r--ext/node/polyfills/internal/fs/handle.ts6
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) => {