aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-stdio-closed.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-02-21 21:19:32 -0800
committerRich Trott <rtrott@gmail.com>2016-02-24 14:54:29 -0800
commit9534f6dfd534c24d1da8a2f0715f2dd6b7e09285 (patch)
tree232fc92082b271070f6225d58006b6f1480678d9 /test/parallel/test-stdio-closed.js
parent7b0a83d2b007a381effa038b3e4fb2421de10b87 (diff)
downloadandroid-node-v8-9534f6dfd534c24d1da8a2f0715f2dd6b7e09285.tar.gz
android-node-v8-9534f6dfd534c24d1da8a2f0715f2dd6b7e09285.tar.bz2
android-node-v8-9534f6dfd534c24d1da8a2f0715f2dd6b7e09285.zip
tools: enable additional lint rules
Enable additional likely-uncontroversial lint rules: * `comma-dangle` set to prohibit dangling commas on objects and arrays that are defined on a single line. Multi-line definitions can use or omit a trailing comma. * `no-unused-labels` Prohibits defining a label that is not used. * `no-path-concat` Prohibits string-concatenation using i`__dirname` and `__filename`. Use `path.join()`, `path.resolve()`, or template strings instead. * `no-new-symbol` disallow use of `new` operator with `Symbol` object. Violating this rule would result in a `TypeError` at runtime.` PR-URL: https://github.com/nodejs/node/pull/5357 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'test/parallel/test-stdio-closed.js')
-rw-r--r--test/parallel/test-stdio-closed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-stdio-closed.js b/test/parallel/test-stdio-closed.js
index 9249ea797b..bf9a57bd68 100644
--- a/test/parallel/test-stdio-closed.js
+++ b/test/parallel/test-stdio-closed.js
@@ -18,7 +18,7 @@ if (process.argv[2] === 'child') {
}
// Run the script in a shell but close stdout and stderr.
-var cmd = '"' + process.execPath + '" "' + __filename + '" child 1>&- 2>&-';
+var cmd = `"${process.execPath}" "${__filename}" child 1>&- 2>&-`;
var proc = spawn('/bin/sh', ['-c', cmd], { stdio: 'inherit' });
proc.on('exit', common.mustCall(function(exitCode) {