Skip to content

Commit dc9e688

Browse files
Trotttargos
authored andcommitted
test: add semicolons for linter update
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 <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 30623c2 commit dc9e688

8 files changed

+21
-21
lines changed

lib/internal/assert/calltracker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const noop = FunctionPrototype;
2222

2323
class CallTracker {
2424

25-
#callChecks = new SafeSet()
25+
#callChecks = new SafeSet();
2626

2727
calls(fn, exact = 1) {
2828
if (process._exiting)

lib/internal/fs/promises.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class FileHandle extends EventEmitterMixin(JSTransferable) {
229229

230230
this.emit('close');
231231
return this[kClosePromise];
232-
}
232+
};
233233

234234
/**
235235
* @typedef {import('../webstreams/readablestream').ReadableStream

lib/internal/source_map/source_map.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class SourceMap {
164164
this.#parseMap(this.#payload, 0, 0);
165165
}
166166
ArrayPrototypeSort(this.#mappings, compareSourceMapEntry);
167-
}
167+
};
168168

169169
/**
170170
* @param {Array.<SourceMapV3.Section>} sections
@@ -174,7 +174,7 @@ class SourceMap {
174174
const section = sections[i];
175175
this.#parseMap(section.map, section.offset.line, section.offset.column);
176176
}
177-
}
177+
};
178178

179179
/**
180180
* @param {number} lineNumber in compiled resource

lib/internal/watchdog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class SigintWatchdog extends TraceSigintWatchdog {
1919
super.start();
2020
this._effective = true;
2121
}
22-
}
22+
};
2323

2424
start() {
2525
if (this._started) {

test/parallel/test-http-agent-domain-reused-gc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ server.emit('connection', serverSide);
5555

5656
// HTTP Agent that only returns the fake connection.
5757
class TestAgent extends http.Agent {
58-
createConnection = common.mustCall(() => wrappedClientSide)
58+
createConnection = common.mustCall(() => wrappedClientSide);
5959
}
6060
const agent = new TestAgent({ keepAlive: true, maxSockets: 1 });
6161

test/parallel/test-readline-promises-tab-complete.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ common.skipIfDumbTerminal();
4242
const width = getStringWidth(char) - 1;
4343

4444
class FakeInput extends EventEmitter {
45-
columns = ((width + 1) * 10 + (lineBreak ? 0 : 10)) * 3
45+
columns = ((width + 1) * 10 + (lineBreak ? 0 : 10)) * 3;
4646

4747
write = common.mustCall((data) => {
4848
output += data;
49-
}, 6)
49+
}, 6);
5050

5151
resume() {}
5252
pause() {}
@@ -86,11 +86,11 @@ common.skipIfDumbTerminal();
8686
{
8787
let output = '';
8888
class FakeInput extends EventEmitter {
89-
columns = 80
89+
columns = 80;
9090

9191
write = common.mustCall((data) => {
9292
output += data;
93-
}, 1)
93+
}, 1);
9494

9595
resume() {}
9696
pause() {}

test/parallel/test-readline-tab-complete.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ common.skipIfDumbTerminal();
3131
const width = getStringWidth(char) - 1;
3232

3333
class FakeInput extends EventEmitter {
34-
columns = ((width + 1) * 10 + (lineBreak ? 0 : 10)) * 3
34+
columns = ((width + 1) * 10 + (lineBreak ? 0 : 10)) * 3;
3535

3636
write = common.mustCall((data) => {
3737
output += data;
38-
}, 6)
38+
}, 6);
3939

4040
resume() {}
4141
pause() {}
@@ -72,11 +72,11 @@ common.skipIfDumbTerminal();
7272
{
7373
let output = '';
7474
class FakeInput extends EventEmitter {
75-
columns = 80
75+
columns = 80;
7676

7777
write = common.mustCall((data) => {
7878
output += data;
79-
}, 1)
79+
}, 1);
8080

8181
resume() {}
8282
pause() {}
@@ -104,11 +104,11 @@ common.skipIfDumbTerminal();
104104
{
105105
let output = '';
106106
class FakeInput extends EventEmitter {
107-
columns = 80
107+
columns = 80;
108108

109109
write = common.mustCall((data) => {
110110
output += data;
111-
}, 9)
111+
}, 9);
112112

113113
resume() {}
114114
pause() {}

test/parallel/test-stream-construct-async-error.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const assert = require('assert');
7272

7373
_write = common.mustCall((chunk, encoding, cb) => {
7474
cb();
75-
})
75+
});
7676

7777
_read() {}
7878
}
@@ -91,7 +91,7 @@ const assert = require('assert');
9191

9292
_write = common.mustCall((chunk, encoding, cb) => {
9393
cb();
94-
})
94+
});
9595

9696
_read() {}
9797
}
@@ -107,7 +107,7 @@ const assert = require('assert');
107107
class Foo extends Writable {
108108
_write = common.mustCall((chunk, encoding, cb) => {
109109
cb();
110-
})
110+
});
111111

112112
async _final() {
113113
// eslint-disable-next-line no-restricted-syntax
@@ -124,7 +124,7 @@ const assert = require('assert');
124124
class Foo extends Writable {
125125
_write = common.mustCall((chunk, encoding, cb) => {
126126
cb();
127-
})
127+
});
128128

129129
async _final(callback) {
130130
// eslint-disable-next-line no-restricted-syntax
@@ -142,7 +142,7 @@ const assert = require('assert');
142142
class Foo extends Writable {
143143
_write = common.mustCall((chunk, encoding, cb) => {
144144
cb();
145-
})
145+
});
146146

147147
async _final() {
148148
// eslint-disable-next-line no-restricted-syntax

0 commit comments

Comments
 (0)