File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -823,6 +823,12 @@ let _builtinLibs = ArrayPrototypeFilter(
823823 ( e ) => e [ 0 ] !== '_' && ! StringPrototypeStartsWith ( e , 'node:' ) ,
824824) ;
825825
826+ // Note: the `getReplBuiltinLibs` and `setReplBuiltinLibs` are functions used to provide getters and
827+ // setters for the `builtinModules` and `_builtinLibs` properties of the repl module and for making
828+ // sure that all internal repl modules share the same value, which can potentially be updated by users.
829+ // Also note that both `repl.builtinModules` and `repl._builtinLibs` are deprecated, once such properties
830+ // are removed these two functions should also be removed as no longer necessary.
831+
826832function getReplBuiltinLibs ( ) {
827833 return _builtinLibs ;
828834}
You can’t perform that action at this time.
0 commit comments