Skip to content

Commit 9ef1cd1

Browse files
gulbakiaduh95
authored andcommitted
repl: avoid deprecated require.extensions in tab completion
PR-URL: #58653Fixes: #58641 Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Dario Piotrowicz <dario.piotrowicz@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent a2d2d36 commit 9ef1cd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/repl.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ function complete(line, callback) {
13381338
filter=completeOn;
13391339
if(this.allowBlockingCompletions){
13401340
constsubdir=match[2]||'';
1341-
constextensions=ObjectKeys(this.context.require.extensions);
1341+
constextensions=ObjectKeys(CJSModule._extensions);
13421342
constindexes=ArrayPrototypeMap(extensions,
13431343
(extension)=>`index${extension}`);
13441344
ArrayPrototypePush(indexes,'package.json','index');

0 commit comments

Comments
 (0)