node
node copied to clipboard
vm: perform lazy-loading at top level
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.