Skip to content

Commit

Permalink
test: remove unused parameters
Browse files Browse the repository at this point in the history
Backport-PR-URL: #19447
PR-URL: #14968
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Kunal Pathak <kunal.pathak@microsoft.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Cai <davidcai1993@yahoo.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
human33 authored and MylesBorins committed Apr 16, 2018
1 parent a766802 commit 31c9717
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/addons-napi/test_async/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const testException = 'test_async_cb_exception';
// Exception thrown from async completion callback.
// (Tested in a spawned process because the exception is fatal.)
if (process.argv[2] === 'child') {
test_async.Test(1, common.mustCall(function(err, val) {
test_async.Test(1, common.mustCall(function() {
throw new Error(testException);
}));
return;
Expand Down
2 changes: 1 addition & 1 deletion test/addons-napi/test_typedarray/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const arrayTypes = [ Int8Array, Uint8Array, Uint8ClampedArray, Int16Array,
Uint16Array, Int32Array, Uint32Array, Float32Array,
Float64Array ];

arrayTypes.forEach((currentType, key) => {
arrayTypes.forEach((currentType) => {
const template = Reflect.construct(currentType, buffer);
const theArray = test_typedarray.CreateTypedArray(template, buffer);

Expand Down
2 changes: 1 addition & 1 deletion test/addons/repl-domain-abort/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const lines = [
const dInput = new stream.Readable();
const dOutput = new stream.Writable();

dInput._read = function _read(size) {
dInput._read = function _read() {
while (lines.length > 0 && this.push(lines.shift()));
if (lines.length === 0)
this.push(null);
Expand Down

0 comments on commit 31c9717

Please sign in to comment.