Skip to content

Commit 6be2a59

Browse files
committed
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: #3150 Reviewed-By: Brian White <[email protected]>
1 parent 3f476ad commit 6be2a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function rimrafSync(p) {
3030
if (e.code === 'ENOENT')
3131
return;
3232
if (e.code === 'EPERM')
33-
return rmdirSync(p, er);
33+
return rmdirSync(p, e);
3434
if (e.code !== 'EISDIR')
3535
throw e;
3636
rmdirSync(p, e);

0 commit comments

Comments
 (0)