From 0858c86374876e50cd54c2c4d9aa65a868846533 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Fri, 2 Oct 2015 00:45:03 +0530 Subject: [PATCH] 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 --- test/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common.js b/test/common.js index eb568d0492b69f..3ed7ce31d8c17b 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);