Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rewire.js')
-rw-r--r--lib/rewire.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/rewire.js b/lib/rewire.js
index cbd24c2..e678f37 100644
--- a/lib/rewire.js
+++ b/lib/rewire.js
@@ -23,14 +23,6 @@ function internalRewire(parentModulePath, targetPath) {
// Resolve full filename relative to the parent module
targetPath = Module._resolveFilename(targetPath, parentModulePath);
- // Special support for older node versions that returned an array on Module._resolveFilename
- // @see https://github.com/joyent/node/blob/865b077819a9271a29f982faaef99dc635b57fbc/lib/module.js#L319
- // TODO Remove this switch on the next major release
- /* istanbul ignore next because it will be removed soon */
- if (Array.isArray(targetPath)) {
- targetPath = targetPath[1];
- }
-
// Create testModule as it would be created by require()
targetModule = new Module(targetPath, parentModulePath);