From 34daef227663699d05f7cd5705c6d95d3e31e7f5 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Tue, 6 Oct 2015 21:25:40 -0700 Subject: [PATCH] test: make common.PIPE a getter --- test/common.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/common.js b/test/common.js index c1c488c4ead15a..af3b452d3d21fd 100644 --- a/test/common.js +++ b/test/common.js @@ -138,7 +138,14 @@ Object.defineProperty(exports, 'hasCrypto', {get: function() { if (exports.isWindows) { exports.PIPE = '\\\\.\\pipe\\libuv-test'; } else { - exports.PIPE = exports.tmpDir + '/test.sock'; + Object.defineProperty(exports, { + configurable: true, + enumerable: true, + writable: true, + get() { + return exports.tmpDir + '/test.sock'; + } + }) } if (process.env.NODE_COMMON_PIPE) {