From 7ac7814e530c721892b57bd08e0112cae38831c1 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. --- 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);