summaryrefslogtreecommitdiff
path: root/test/async-hooks
diff options
context:
space:
mode:
authorJulia <jkmcgeoghan@myseneca.ca>2018-11-14 20:34:16 -0500
committerRich Trott <rtrott@gmail.com>2018-11-16 19:23:42 -0800
commit07a7bf7272e1c460c0ee84547bdc08d579abed8b (patch)
tree4d04a7d528335889f12143bcc5baa1c61a6b5182 /test/async-hooks
parentc3a03373b0fb81db35e15e2dff90e0c5b59b21aa (diff)
downloadandroid-node-v8-07a7bf7272e1c460c0ee84547bdc08d579abed8b.tar.gz
android-node-v8-07a7bf7272e1c460c0ee84547bdc08d579abed8b.tar.bz2
android-node-v8-07a7bf7272e1c460c0ee84547bdc08d579abed8b.zip
test: use destructuring and remove unused arguments
Use destructuring consistently and remove unused function arguments in test-pipewrap.js PR-URL: https://github.com/nodejs/node/pull/24375 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/async-hooks')
-rw-r--r--test/async-hooks/test-pipewrap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/async-hooks/test-pipewrap.js b/test/async-hooks/test-pipewrap.js
index f04f900606..a632115d22 100644
--- a/test/async-hooks/test-pipewrap.js
+++ b/test/async-hooks/test-pipewrap.js
@@ -8,7 +8,7 @@ const assert = require('assert');
const tick = require('../common/tick');
const initHooks = require('./init-hooks');
const { checkInvocations } = require('./hook-checks');
-const spawn = require('child_process').spawn;
+const { spawn } = require('child_process');
if (!common.isMainThread)
common.skip('Worker bootstrapping works differently -> different async IDs');
@@ -45,7 +45,7 @@ checkInvocations(processwrap, { init: 1 },
checkInvocations(x, { init: 1 }, 'pipe wrap when sleep.spawn was called');
});
-function onsleepExit(code) {
+function onsleepExit() {
checkInvocations(processwrap, { init: 1, before: 1 },
'processwrap while in onsleepExit callback');
}