diff --git a/lib/repl.js b/lib/repl.js index d598de3f519..5c3d0747697 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1359,7 +1359,7 @@ function complete(line, callback) { filter = completeOn; if (this.allowBlockingCompletions) { const subdir = match[2] || ''; - const extensions = ObjectKeys(this.context.require.extensions); + const extensions = ObjectKeys(CJSModule._extensions); const indexes = ArrayPrototypeMap(extensions, (extension) => `index${extension}`); ArrayPrototypePush(indexes, 'package.json', 'index');