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
Revert "In MODULARIZE mode avoid modifying the incoming moduleArg. NFC (#21775)" (#21994)
This change effectively reverts 4dac6d6.
It turns out that there is at least one use case where accessing the
partially constructed module prior to the promise resolution is
necessary. Specifically when using `--preload-files` the file packager
output expects to be able to use the `Module.FS` functions before the
module is loaded. This PR adds a test for this scenario.
expected = "Aborted(Access to module property ('_foo') is no longer possible via the module constructor argument; Instead, use the result of the module constructor"
0 commit comments