You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
importModuleDynamically for vm module is cached #36351
vm.SourceTextModule is caching the importModuleDynamically callback as long as the source code is the same, where as initializeImportMeta does not.
If how importModuleDynamically does its work depends on an external state, often in test suite, it will load modules inconsistently to those state and cause discrepancies as viewed inside the VM modules.
Activity
targos commentedon Dec 6, 2020
@nodejs/modules
devsnek commentedon Dec 6, 2020
this is a bug in v8 that they have been very unenthusiastic about fixing.
avivkeller commentedon May 5, 2024
In Node.js v22 this is no longer the case AFAICT:
joyeecheung commentedon Jul 11, 2024
The host defined options leak in the compilation cache has already been fixed by V8. Closing.