Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
lib: fix spelling in comments
  • Loading branch information
tniessen committed Jan 7, 2018
commit 849676daac86cb99266e8e88337308a5d05389ec
2 changes: 1 addition & 1 deletion lib/internal/async_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const { async_hook_fields, async_id_fields } = async_wrap;
// of a fatal exception this stack is emptied after calling each hook's after()
// callback.
const { pushAsyncIds: pushAsyncIds_, popAsyncIds: popAsyncIds_ } = async_wrap;
// For performance reasons, only track Proimses when a hook is enabled.
// For performance reasons, only track Promises when a hook is enabled.
const { enablePromiseHook, disablePromiseHook } = async_wrap;
// Properties in active_hooks are used to keep track of the set of hooks being
// executed in case another hook is enabled/disabled. The new set of hooks is
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ class Http2Stream extends Duplex {
return !!(this[kState].flags & STREAM_FLAGS_HEADERS_SENT);
}

// true if the Http2Stream was aborted abornomally.
// true if the Http2Stream was aborted abnormally.
get aborted() {
return !!(this[kState].flags & STREAM_FLAGS_ABORTED);
}
Expand Down Expand Up @@ -2392,7 +2392,7 @@ Object.defineProperty(Http2Session.prototype, 'setTimeout', setTimeout);


// When the socket emits an error, destroy the associated Http2Session and
// foward it the same error.
// forward it the same error.
function socketOnError(error) {
const session = this[kSession];
if (session !== undefined) {
Expand Down