fix: properly inject extraGlobals
into the environment
#10758
Merged
extraGlobals
into the environment
#10758