From: Sakthipriyan Vairamani Date: Thu, 1 Oct 2015 19:15:03 +0000 (+0530) Subject: test: fix invalid variable name X-Git-Tag: v4.1.2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0858c86374876e50cd54c2c4d9aa65a868846533;p=platform%2Fupstream%2Fnodejs.git 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 --- diff --git a/test/common.js b/test/common.js index eb568d0..3ed7ce3 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);