projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39b8730
)
test: fix invalid variable name
author
Sakthipriyan Vairamani
<thechargingvolcano@gmail.com>
Thu, 1 Oct 2015 19:15:03 +0000
(
00:45
+0530)
committer
Rod Vagg
<rod@vagg.org>
Fri, 2 Oct 2015 03:39:26 +0000
(13:39 +1000)
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>
test/common.js
patch
|
blob
|
history
diff --git
a/test/common.js
b/test/common.js
index
eb568d0
..
3ed7ce3
100644
(file)
--- 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, e
r
);
+ return rmdirSync(p, e);
if (e.code !== 'EISDIR')
throw e;
rmdirSync(p, e);