File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3638,13 +3638,13 @@ void Generator::GenerateFile(const GeneratorOptions& options,
3638
3638
// may be blocked by things like CSP.
3639
3639
// Function('') is almost the same as eval('')
3640
3640
printer->Print (
3641
- " var globalThis = typeof globalThis !== 'undefined' && globalThis; \n "
3642
- " var window = typeof window !== 'undefined' && window; \n "
3643
- " var global = typeof global !== 'undefined' && global; \n "
3644
- " var self = typeof self !== 'undefined' && self; \n "
3645
- " var global = globalThis || window || global || self ||\n "
3646
- " (function () { return this; }).call(null) ||\n "
3647
- " Function('return this')();\n\n " );
3641
+ " var global = \n "
3642
+ " ( typeof globalThis !== 'undefined' && globalThis) || \n "
3643
+ " ( typeof window !== 'undefined' && window) || \n "
3644
+ " ( typeof global !== 'undefined' && global) || \n "
3645
+ " (typeof self !== 'undefined' && self) ||\n "
3646
+ " (function () { return this; }).call(null) ||\n "
3647
+ " Function('return this')();\n\n " );
3648
3648
}
3649
3649
3650
3650
for (int i = 0 ; i < file->dependency_count (); i++) {
You can’t perform that action at this time.
0 commit comments