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);