Skip to content

vm: perform lazy-loading at top level

Rodrigo Muino Tomonari requested to merge github/fork/RedYetiDev/patch-61 into main

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.

Merge request reports

Loading