From dc9e68899d8d34ad640f6f181b35657420368e7b Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 4 Nov 2021 06:18:10 -0700 Subject: [PATCH] test: add semicolons for linter update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing semicolons that will be flagged when we update @babel/eslint-parser to 7.16.0. PR-URL: https://github.com/nodejs/node/pull/40720 Reviewed-By: Tobias Nießen Reviewed-By: Michaël Zasso Reviewed-By: Luigi Pinca --- lib/internal/assert/calltracker.js | 2 +- lib/internal/fs/promises.js | 2 +- lib/internal/source_map/source_map.js | 4 ++-- lib/internal/watchdog.js | 2 +- test/parallel/test-http-agent-domain-reused-gc.js | 2 +- test/parallel/test-readline-promises-tab-complete.js | 8 ++++---- test/parallel/test-readline-tab-complete.js | 12 ++++++------ test/parallel/test-stream-construct-async-error.js | 10 +++++----- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/internal/assert/calltracker.js b/lib/internal/assert/calltracker.js index d45fb67d611e8b..0fbdf70e5d825c 100644 --- a/lib/internal/assert/calltracker.js +++ b/lib/internal/assert/calltracker.js @@ -22,7 +22,7 @@ const noop = FunctionPrototype; class CallTracker { - #callChecks = new SafeSet() + #callChecks = new SafeSet(); calls(fn, exact = 1) { if (process._exiting) diff --git a/lib/internal/fs/promises.js b/lib/internal/fs/promises.js index b9c3b7cb407159..0663e617126ff0 100644 --- a/lib/internal/fs/promises.js +++ b/lib/internal/fs/promises.js @@ -229,7 +229,7 @@ class FileHandle extends EventEmitterMixin(JSTransferable) { this.emit('close'); return this[kClosePromise]; - } + }; /** * @typedef {import('../webstreams/readablestream').ReadableStream diff --git a/lib/internal/source_map/source_map.js b/lib/internal/source_map/source_map.js index 99091a48465d50..fca23b0754f964 100644 --- a/lib/internal/source_map/source_map.js +++ b/lib/internal/source_map/source_map.js @@ -164,7 +164,7 @@ class SourceMap { this.#parseMap(this.#payload, 0, 0); } ArrayPrototypeSort(this.#mappings, compareSourceMapEntry); - } + }; /** * @param {Array.} sections @@ -174,7 +174,7 @@ class SourceMap { const section = sections[i]; this.#parseMap(section.map, section.offset.line, section.offset.column); } - } + }; /** * @param {number} lineNumber in compiled resource diff --git a/lib/internal/watchdog.js b/lib/internal/watchdog.js index 6a5b772111f4d6..c63f29336fcfee 100644 --- a/lib/internal/watchdog.js +++ b/lib/internal/watchdog.js @@ -19,7 +19,7 @@ class SigintWatchdog extends TraceSigintWatchdog { super.start(); this._effective = true; } - } + }; start() { if (this._started) { diff --git a/test/parallel/test-http-agent-domain-reused-gc.js b/test/parallel/test-http-agent-domain-reused-gc.js index 9470b23b472662..b63c2d20210c37 100644 --- a/test/parallel/test-http-agent-domain-reused-gc.js +++ b/test/parallel/test-http-agent-domain-reused-gc.js @@ -55,7 +55,7 @@ server.emit('connection', serverSide); // HTTP Agent that only returns the fake connection. class TestAgent extends http.Agent { - createConnection = common.mustCall(() => wrappedClientSide) + createConnection = common.mustCall(() => wrappedClientSide); } const agent = new TestAgent({ keepAlive: true, maxSockets: 1 }); diff --git a/test/parallel/test-readline-promises-tab-complete.js b/test/parallel/test-readline-promises-tab-complete.js index 45a4be359776b8..fd32900e71d096 100644 --- a/test/parallel/test-readline-promises-tab-complete.js +++ b/test/parallel/test-readline-promises-tab-complete.js @@ -42,11 +42,11 @@ common.skipIfDumbTerminal(); const width = getStringWidth(char) - 1; class FakeInput extends EventEmitter { - columns = ((width + 1) * 10 + (lineBreak ? 0 : 10)) * 3 + columns = ((width + 1) * 10 + (lineBreak ? 0 : 10)) * 3; write = common.mustCall((data) => { output += data; - }, 6) + }, 6); resume() {} pause() {} @@ -86,11 +86,11 @@ common.skipIfDumbTerminal(); { let output = ''; class FakeInput extends EventEmitter { - columns = 80 + columns = 80; write = common.mustCall((data) => { output += data; - }, 1) + }, 1); resume() {} pause() {} diff --git a/test/parallel/test-readline-tab-complete.js b/test/parallel/test-readline-tab-complete.js index be993911c6fe16..64df237d56ad44 100644 --- a/test/parallel/test-readline-tab-complete.js +++ b/test/parallel/test-readline-tab-complete.js @@ -31,11 +31,11 @@ common.skipIfDumbTerminal(); const width = getStringWidth(char) - 1; class FakeInput extends EventEmitter { - columns = ((width + 1) * 10 + (lineBreak ? 0 : 10)) * 3 + columns = ((width + 1) * 10 + (lineBreak ? 0 : 10)) * 3; write = common.mustCall((data) => { output += data; - }, 6) + }, 6); resume() {} pause() {} @@ -72,11 +72,11 @@ common.skipIfDumbTerminal(); { let output = ''; class FakeInput extends EventEmitter { - columns = 80 + columns = 80; write = common.mustCall((data) => { output += data; - }, 1) + }, 1); resume() {} pause() {} @@ -104,11 +104,11 @@ common.skipIfDumbTerminal(); { let output = ''; class FakeInput extends EventEmitter { - columns = 80 + columns = 80; write = common.mustCall((data) => { output += data; - }, 9) + }, 9); resume() {} pause() {} diff --git a/test/parallel/test-stream-construct-async-error.js b/test/parallel/test-stream-construct-async-error.js index 8101ec93fc0d74..1c647235e29429 100644 --- a/test/parallel/test-stream-construct-async-error.js +++ b/test/parallel/test-stream-construct-async-error.js @@ -72,7 +72,7 @@ const assert = require('assert'); _write = common.mustCall((chunk, encoding, cb) => { cb(); - }) + }); _read() {} } @@ -91,7 +91,7 @@ const assert = require('assert'); _write = common.mustCall((chunk, encoding, cb) => { cb(); - }) + }); _read() {} } @@ -107,7 +107,7 @@ const assert = require('assert'); class Foo extends Writable { _write = common.mustCall((chunk, encoding, cb) => { cb(); - }) + }); async _final() { // eslint-disable-next-line no-restricted-syntax @@ -124,7 +124,7 @@ const assert = require('assert'); class Foo extends Writable { _write = common.mustCall((chunk, encoding, cb) => { cb(); - }) + }); async _final(callback) { // eslint-disable-next-line no-restricted-syntax @@ -142,7 +142,7 @@ const assert = require('assert'); class Foo extends Writable { _write = common.mustCall((chunk, encoding, cb) => { cb(); - }) + }); async _final() { // eslint-disable-next-line no-restricted-syntax