summaryrefslogtreecommitdiff
path: root/ext/node/polyfills
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills')
-rw-r--r--ext/node/polyfills/01_require.js2
-rw-r--r--ext/node/polyfills/_fs/_fs_opendir.ts2
-rw-r--r--ext/node/polyfills/internal/fs/handle.ts6
-rw-r--r--ext/node/polyfills/internal_binding/_node.ts2
4 files changed, 6 insertions, 6 deletions
diff --git a/ext/node/polyfills/01_require.js b/ext/node/polyfills/01_require.js
index 508a32e12..da8e1e3be 100644
--- a/ext/node/polyfills/01_require.js
+++ b/ext/node/polyfills/01_require.js
@@ -874,7 +874,7 @@ Module.prototype.load = function (filename) {
pathDirname(this.filename),
);
const extension = findLongestRegisteredExtension(filename);
- // allow .mjs to be overriden
+ // allow .mjs to be overridden
if (
StringPrototypeEndsWith(filename, ".mjs") && !Module._extensions[".mjs"]
) {
diff --git a/ext/node/polyfills/_fs/_fs_opendir.ts b/ext/node/polyfills/_fs/_fs_opendir.ts
index 494bdb4f0..b936e1ca9 100644
--- a/ext/node/polyfills/_fs/_fs_opendir.ts
+++ b/ext/node/polyfills/_fs/_fs_opendir.ts
@@ -13,7 +13,7 @@ import {
} from "ext:deno_node/internal/validators.mjs";
import { promisify } from "ext:deno_node/internal/util.mjs";
-/** These options aren't funcitonally used right now, as `Dir` doesn't yet support them.
+/** These options aren't functionally used right now, as `Dir` doesn't yet support them.
* However, these values are still validated.
*/
type Options = {
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) => {
diff --git a/ext/node/polyfills/internal_binding/_node.ts b/ext/node/polyfills/internal_binding/_node.ts
index 47a289dda..f9a873fc2 100644
--- a/ext/node/polyfills/internal_binding/_node.ts
+++ b/ext/node/polyfills/internal_binding/_node.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-// This file contains C++ node globals accesed in internal binding calls
+// This file contains C++ node globals accessed in internal binding calls
/**
* Adapted from