mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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: https://github.com/nodejs/node/pull/40720 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
04451d869c
commit
492d767b6d
@ -22,7 +22,7 @@ const noop = FunctionPrototype;
|
||||
|
||||
class CallTracker {
|
||||
|
||||
#callChecks = new SafeSet()
|
||||
#callChecks = new SafeSet();
|
||||
|
||||
calls(fn, exact = 1) {
|
||||
if (process._exiting)
|
||||
|
@ -229,7 +229,7 @@ class FileHandle extends EventEmitterMixin(JSTransferable) {
|
||||
|
||||
this.emit('close');
|
||||
return this[kClosePromise];
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @typedef {import('../webstreams/readablestream').ReadableStream
|
||||
|
@ -164,7 +164,7 @@ class SourceMap {
|
||||
this.#parseMap(this.#payload, 0, 0);
|
||||
}
|
||||
ArrayPrototypeSort(this.#mappings, compareSourceMapEntry);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {Array.<SourceMapV3.Section>} 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
|
||||
|
@ -19,7 +19,7 @@ class SigintWatchdog extends TraceSigintWatchdog {
|
||||
super.start();
|
||||
this._effective = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
start() {
|
||||
if (this._started) {
|
||||
|
@ -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 });
|
||||
|
||||
|
@ -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() {}
|
||||
|
@ -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() {}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user