@@ -2858,29 +2858,29 @@ console.log(memoryUsage.rss());
28582858// 35655680
28592859` ` `
28602860
2861- ## ` process .moduleLoadList `
2861+ ## ` process .loadedModules `
28622862
28632863<!-- YAML
28642864added: v0.5.3
28652865-->
28662866
28672867* Type: {string\[ ]}
28682868
2869- The ` process .moduleLoadList ` property returns an array of internal bindings and core modules that
2869+ The ` process .loadedModules ` property returns an array of core modules that
28702870were loaded during the current Node.js process execution.
28712871
28722872` ` ` mjs
2873- import { moduleLoadList } from ' node:process' ;
2873+ import { loadedModules } from ' node:process' ;
28742874
2875- console .log (moduleLoadList );
2876- // ['Internal Binding builtins ', 'Internal Binding module_wrap ', 'Internal Binding errors ', ...]
2875+ console .log (loadedModules );
2876+ // ['events ', 'buffer ', 'diagnostics_channel', 'async_hooks ', ...]
28772877` ` `
28782878
28792879` ` ` cjs
2880- const { moduleLoadList } = require (' node:process' );
2880+ const { loadedModules } = require (' node:process' );
28812881
2882- console .log (moduleLoadList );
2883- // ['Internal Binding builtins ', 'Internal Binding module_wrap ', 'Internal Binding errors ', ...]
2882+ console .log (loadedModules );
2883+ // ['events ', 'buffer ', 'diagnostics_channel', 'async_hooks ', ...]
28842884` ` `
28852885
28862886## ` process .nextTick (callback[, ... args])`
0 commit comments