summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-10-02 00:45:03 +0530
committerRod Vagg <rod@vagg.org>2015-10-02 13:39:26 +1000
commit0858c86374876e50cd54c2c4d9aa65a868846533 (patch)
tree3834d1f5398f09b0bcce23ca7a58f1af034e1620
parent39b8730e8b0e5d71e38a5cd6512ddc30a1849e7c (diff)
downloadnodejs-0858c86374876e50cd54c2c4d9aa65a868846533.tar.gz
nodejs-0858c86374876e50cd54c2c4d9aa65a868846533.tar.bz2
nodejs-0858c86374876e50cd54c2c4d9aa65a868846533.zip
test: fix invalid variable name
The variable `er` is not declared at all. So if EPERM error is ever raised then the `er` will throw `ReferenceError` and the code will break. PR-URL: https://github.com/nodejs/node/pull/3150 Reviewed-By: Brian White <mscdex@mscdex.net>
-rw-r--r--test/common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common.js b/test/common.js
index eb568d049..3ed7ce31d 100644
--- a/test/common.js
+++ b/test/common.js
@@ -30,7 +30,7 @@ function rimrafSync(p) {
if (e.code === 'ENOENT')
return;
if (e.code === 'EPERM')
- return rmdirSync(p, er);
+ return rmdirSync(p, e);
if (e.code !== 'EISDIR')
throw e;
rmdirSync(p, e);