Skip to content

Commit

Permalink
test: add semicolons for linter update
Browse files Browse the repository at this point in the history
Add missing semicolons that will be flagged when we update
@babel/eslint-parser to 7.16.0.

PR-URL: #40720
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott authored and targos committed Nov 21, 2021
1 parent 30623c2 commit dc9e688
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion lib/internal/assert/calltracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const noop = FunctionPrototype;

class CallTracker {

#callChecks = new SafeSet()
#callChecks = new SafeSet();

calls(fn, exact = 1) {
if (process._exiting)
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/fs/promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class FileHandle extends EventEmitterMixin(JSTransferable) {

this.emit('close');
return this[kClosePromise];
}
};

/**
* @typedef {import('../webstreams/readablestream').ReadableStream
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/source_map/source_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class SourceMap {
this.#parseMap(this.#payload, 0, 0);
}
ArrayPrototypeSort(this.#mappings, compareSourceMapEntry);
}
};

/**
* @param {Array.<SourceMapV3.Section>} sections
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/watchdog.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SigintWatchdog extends TraceSigintWatchdog {
super.start();
this._effective = true;
}
}
};

start() {
if (this._started) {
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-http-agent-domain-reused-gc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down
8 changes: 4 additions & 4 deletions test/parallel/test-readline-promises-tab-complete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
Expand Down Expand Up @@ -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() {}
Expand Down
12 changes: 6 additions & 6 deletions test/parallel/test-readline-tab-complete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
Expand Down Expand Up @@ -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() {}
Expand Down Expand Up @@ -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() {}
Expand Down
10 changes: 5 additions & 5 deletions test/parallel/test-stream-construct-async-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const assert = require('assert');

_write = common.mustCall((chunk, encoding, cb) => {
cb();
})
});

_read() {}
}
Expand All @@ -91,7 +91,7 @@ const assert = require('assert');

_write = common.mustCall((chunk, encoding, cb) => {
cb();
})
});

_read() {}
}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit dc9e688

Please sign in to comment.