Skip to content
Snippets Groups Projects
Commit 1e90f4e9 authored by Simon Rose's avatar Simon Rose
Browse files

Remove superfluous static firstTime checks

There are two changes here:
* The initHookRegistrar was being run when initially when require registers
  itself. But this is just telling it to run `fillModuleListRecord` later,
  which seems cleaner to do as a part of registering require instead of
  indirectly. Note that the debug check can never actually happen as the
  variable `requireDebug` will always be 0 at this point in time.
* The environment variables being set is slightly different, in the sense
  that if you did not `require foo` at all you did not set these environment
  variables at all. However, it seems to me to make more sense to either set
  them independent of loading a module, or perhaps not at all; either which
  way it seems odd that it depended on us loading a module.
parent 403b2fb9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment