Skip to content

Commit 31c9717

Browse files
human33MylesBorins
authored andcommitted
test: remove unused parameters
Backport-PR-URL: #19447 PR-URL: #14968 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Kunal Pathak <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: David Cai <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a766802 commit 31c9717

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/addons-napi/test_async/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const testException = 'test_async_cb_exception';
99
// Exception thrown from async completion callback.
1010
// (Tested in a spawned process because the exception is fatal.)
1111
if (process.argv[2] === 'child') {
12-
test_async.Test(1, common.mustCall(function(err, val) {
12+
test_async.Test(1, common.mustCall(function() {
1313
throw new Error(testException);
1414
}));
1515
return;

test/addons-napi/test_typedarray/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const arrayTypes = [ Int8Array, Uint8Array, Uint8ClampedArray, Int16Array,
4444
Uint16Array, Int32Array, Uint32Array, Float32Array,
4545
Float64Array ];
4646

47-
arrayTypes.forEach((currentType, key) => {
47+
arrayTypes.forEach((currentType) => {
4848
const template = Reflect.construct(currentType, buffer);
4949
const theArray = test_typedarray.CreateTypedArray(template, buffer);
5050

test/addons/repl-domain-abort/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const lines = [
2525
const dInput = new stream.Readable();
2626
const dOutput = new stream.Writable();
2727

28-
dInput._read = function _read(size) {
28+
dInput._read = function _read() {
2929
while (lines.length > 0 && this.push(lines.shift()));
3030
if (lines.length === 0)
3131
this.push(null);

0 commit comments

Comments
 (0)