summaryrefslogtreecommitdiff
path: root/test/sequential/test-module-loading.js
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-07-15 03:30:28 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-07-21 20:40:52 +0300
commit4f875222445b07016a8294fa5a5bf7418c735489 (patch)
treefcb4996be68507c06dec905eacff6300d74319e7 /test/sequential/test-module-loading.js
parent43bd47c352a368db6051b1017225abace015d3c9 (diff)
downloadandroid-node-v8-4f875222445b07016a8294fa5a5bf7418c735489.tar.gz
android-node-v8-4f875222445b07016a8294fa5a5bf7418c735489.tar.bz2
android-node-v8-4f875222445b07016a8294fa5a5bf7418c735489.zip
doc, lib, test: do not re-require needlessly
PR-URL: https://github.com/nodejs/node/pull/14244 Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Diffstat (limited to 'test/sequential/test-module-loading.js')
-rw-r--r--test/sequential/test-module-loading.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-module-loading.js b/test/sequential/test-module-loading.js
index 8a7bfe15c4..b117555a22 100644
--- a/test/sequential/test-module-loading.js
+++ b/test/sequential/test-module-loading.js
@@ -146,7 +146,7 @@ try {
assert.strictEqual(e.message, 'blah');
}
-assert.strictEqual(require('path').dirname(__filename), __dirname);
+assert.strictEqual(path.dirname(__filename), __dirname);
console.error('load custom file types with extensions');
require.extensions['.test'] = function(module, filename) {