From dcdb646ada01f03207ddec99e3c8b0ce8ab8e9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 6 Jan 2018 20:17:53 +0100 Subject: [PATCH] lib: fix spelling in comments PR-URL: https://github.com/nodejs/node/pull/18018 Reviewed-By: Jon Moss Reviewed-By: Anatoli Papirovski Reviewed-By: Weijia Wang Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto --- lib/internal/async_hooks.js | 2 +- lib/internal/http2/core.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/async_hooks.js b/lib/internal/async_hooks.js index 461dad84ebedf4..fb4003a45ad93a 100644 --- a/lib/internal/async_hooks.js +++ b/lib/internal/async_hooks.js @@ -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 diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index e818085afb763a..3b037cd0c3dd2f 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -1549,7 +1549,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); } @@ -2380,7 +2380,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) {