diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-29 14:46:53 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-04-08 18:56:17 +0200 |
commit | d11c4beb4b371594be3eadd440ce62916bfdc54d (patch) | |
tree | d718ce9d426c1a6ee94dc4870d41a38a0c0c3d39 /test/parallel/test-module-relative-lookup.js | |
parent | a3f30a48c2392f97e40bfc347bcd301935131267 (diff) | |
download | android-node-v8-d11c4beb4b371594be3eadd440ce62916bfdc54d.tar.gz android-node-v8-d11c4beb4b371594be3eadd440ce62916bfdc54d.tar.bz2 android-node-v8-d11c4beb4b371594be3eadd440ce62916bfdc54d.zip |
module: remove dead code
This removes a lot of code that has no functionality anymore. All
Node.js internal code calls `_resolveLookupPaths` with two arguments.
The code that validates `index.js` is not required at all as we check
for these files anyway, so it's just redundant code that should be
removed.
PR-URL: https://github.com/nodejs/node/pull/26983
Refs: https://github.com/nodejs/node/pull/25362
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'test/parallel/test-module-relative-lookup.js')
-rw-r--r-- | test/parallel/test-module-relative-lookup.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/parallel/test-module-relative-lookup.js b/test/parallel/test-module-relative-lookup.js index e9d6112da7..1bd505392c 100644 --- a/test/parallel/test-module-relative-lookup.js +++ b/test/parallel/test-module-relative-lookup.js @@ -10,12 +10,11 @@ function testFirstInPath(moduleName, isLocalModule) { assert.strictEqual : assert.notStrictEqual; - const lookupResults = _module._resolveLookupPaths(moduleName); + let paths = _module._resolveLookupPaths(moduleName); - let paths = lookupResults[1]; assertFunction(paths[0], '.'); - paths = _module._resolveLookupPaths(moduleName, null, true); + paths = _module._resolveLookupPaths(moduleName, null); assertFunction(paths && paths[0], '.'); } |