Using code generation is the most reliable way to resolve the global object; however, doing so is likely to violate content security policies (CSPs) in, e.g., Chrome Apps and elsewhere.
Parameters
Optional codegen: undefined | false | true
boolean indicating whether to use code generation to resolve the global object
Returns the global object.
Notes