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 <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 30623c2 commit dc9e688

8 files changed

Lines changed: 21 additions & 21 deletions

‎lib/internal/assert/calltracker.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const noop = FunctionPrototype;
2222

2323
classCallTracker{
2424

25-
#callChecks =newSafeSet()
25+
#callChecks =newSafeSet();
2626

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

‎lib/internal/fs/promises.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class FileHandle extends EventEmitterMixin(JSTransferable) {
229229

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

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

‎lib/internal/source_map/source_map.js‎

Lines changed: 2 additions & 2 deletions
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
constsection=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‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 1 addition & 1 deletion
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
classTestAgentextendshttp.Agent{
58-
createConnection=common.mustCall(()=>wrappedClientSide)
58+
createConnection=common.mustCall(()=>wrappedClientSide);
5959
}
6060
constagent=newTestAgent({keepAlive: true,maxSockets: 1});
6161

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ common.skipIfDumbTerminal();
4242
constwidth=getStringWidth(char)-1;
4343

4444
classFakeInputextendsEventEmitter{
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
letoutput='';
8888
classFakeInputextendsEventEmitter{
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‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ common.skipIfDumbTerminal();
3131
constwidth=getStringWidth(char)-1;
3232

3333
classFakeInputextendsEventEmitter{
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
letoutput='';
7474
classFakeInputextendsEventEmitter{
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
letoutput='';
106106
classFakeInputextendsEventEmitter{
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‎

Lines changed: 5 additions & 5 deletions
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
classFooextendsWritable{
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
classFooextendsWritable{
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
classFooextendsWritable{
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)