diff --git a/lib/core/connect.js b/lib/core/connect.js index 21e16af8bc4..4ad2c91d2cb 100644 --- a/lib/core/connect.js +++ b/lib/core/connect.js @@ -165,7 +165,7 @@ function setupTimeout (onConnectTimeout, timeout) { let s1 = null let s2 = null const timeoutId = setTimeout(() => { - // setImmediate is added to make sure that we priotorise socket error events over timeouts + // setImmediate is added to make sure that we prioritize socket error events over timeouts s1 = setImmediate(() => { if (process.platform === 'win32') { // Windows needs an extra setImmediate probably due to implementation differences in the socket logic diff --git a/lib/web/websocket/receiver.js b/lib/web/websocket/receiver.js index 869409d2d10..29b3a32d87d 100644 --- a/lib/web/websocket/receiver.js +++ b/lib/web/websocket/receiver.js @@ -212,7 +212,7 @@ class ByteParser extends Writable { const buffer = this.consume(8) const upper = buffer.readUInt32BE(0) - // 2^31 is the maxinimum bytes an arraybuffer can contain + // 2^31 is the maximum bytes an arraybuffer can contain // on 32-bit systems. Although, on 64-bit systems, this is // 2^53-1 bytes. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length diff --git a/lib/web/websocket/websocket.js b/lib/web/websocket/websocket.js index 45a7f867cad..892ce78c2db 100644 --- a/lib/web/websocket/websocket.js +++ b/lib/web/websocket/websocket.js @@ -547,7 +547,7 @@ webidl.converters['DOMString or sequence'] = function (V, prefix, arg return webidl.converters.DOMString(V, prefix, argument) } -// This implements the propsal made in https://github.com/whatwg/websockets/issues/42 +// This implements the proposal made in https://github.com/whatwg/websockets/issues/42 webidl.converters.WebSocketInit = webidl.dictionaryConverter([ { key: 'protocols', diff --git a/test/util.js b/test/util.js index f14ccf6bf7e..f646ec4ff25 100644 --- a/test/util.js +++ b/test/util.js @@ -263,7 +263,7 @@ describe('timers', () => { return actual - BigInt(target) } - // timers.setTimeout impelements a low resolution timer with a 500 ms granularity + // timers.setTimeout implements a low resolution timer with a 500 ms granularity // It is expected that in the worst case, a timer will fire about 500 ms after the // intended amount of time, an extra 200 ms is added to account event loop overhead // Timers should never fire excessively early, 1ms early is tolerated