node icon indicating copy to clipboard operation
node copied to clipboard

vm: perform lazy-loading at top level

Open redyetidev opened this issue 8 months ago • 2 comments

As it currently stands, the lazy loading for lib/internal/vm/module.js's require of internal/util/inspect is performed in a function. This means that a re-call of the function will be a re-call of the require of the module.

This PR moves the lazy-loading to only occur once.

redyetidev avatar Jun 25 '24 20:06 redyetidev