Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: fix few comment typos in fs/watchers.js #31705

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lib/internal/fs/watchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ StatWatcher.prototype[kFSStatWatcherStart] = function(filename,
this._handle.unref();

// uv_fs_poll is a little more powerful than ev_stat but we curb it for
// the sake of backwards compatibility
// the sake of backwards compatibility.
this[kOldStatus] = -1;

filename = getValidatedPath(filename, 'filename');
Expand All @@ -95,9 +95,9 @@ StatWatcher.prototype[kFSStatWatcherStart] = function(filename,
}
};

// To maximize backward-compatiblity for the end user,
// To maximize backward-compatibility for the end user,
// a no-op stub method has been added instead of
// totally removing StatWatcher.prototpye.start.
// totally removing StatWatcher.prototype.start.
// This should not be documented.
StatWatcher.prototype.start = () => {};

Expand Down Expand Up @@ -133,7 +133,7 @@ function FSWatcher() {
if (this._handle !== null) {
// We don't use this.close() here to avoid firing the close event.
this._handle.close();
this._handle = null; // Make the handle garbage collectable
this._handle = null; // Make the handle garbage collectable.
}
const error = errors.uvException({
errno: status,
Expand Down Expand Up @@ -187,9 +187,9 @@ FSWatcher.prototype[kFSWatchStart] = function(filename,
}
};

// To maximize backward-compatiblity for the end user,
// To maximize backward-compatibility for the end user,
// a no-op stub method has been added instead of
// totally removing FSWatcher.prototpye.start.
// totally removing FSWatcher.prototype.start.
// This should not be documented.
FSWatcher.prototype.start = () => {};

Expand All @@ -204,7 +204,7 @@ FSWatcher.prototype.close = function() {
return;
}
this._handle.close();
this._handle = null; // Make the handle garbage collectable
this._handle = null; // Make the handle garbage collectable.
process.nextTick(emitCloseNT, this);
};

Expand Down