Bug 1000172 - Prevent scripts defining global from being removed during the optimization
Merge pull request #18587 from crh0716/1000172

Bug 1000172 - Prevent scripts defining global from being removed during the optimization r=evelyn