File tree Expand file tree Collapse file tree 6 files changed +5
-6
lines changed
Expand file tree Collapse file tree 6 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ declare const WorkerGlobalScope: any;
5555export const zoneSymbol = Zone . __symbol__ ;
5656const isWindowExists = typeof window !== 'undefined' ;
5757const internalWindow : any = isWindowExists ? window : undefined ;
58- const _global : any = isWindowExists && internalWindow || typeof self === 'object' && self || global ;
58+ const _global : any = isWindowExists && internalWindow || globalThis ;
5959
6060const REMOVE_ATTRIBUTE = 'removeAttribute' ;
6161
Original file line number Diff line number Diff line change @@ -1445,4 +1445,4 @@ const Zone: ZoneType = (function(global: any) {
14451445
14461446 performanceMeasure ( 'Zone' , 'Zone' ) ;
14471447 return global [ 'Zone' ] = Zone ;
1448- } ) ( typeof window !== 'undefined' && window || typeof self !== 'undefined' && self || global ) ;
1448+ } ) ( globalThis ) ;
Original file line number Diff line number Diff line change @@ -183,4 +183,4 @@ declare const global: any;
183183 }
184184 } ;
185185 } ;
186- } ) ( typeof window !== 'undefined' && window || typeof self !== 'undefined' && self || global ) ;
186+ } ) ( globalThis ) ;
Original file line number Diff line number Diff line change @@ -86,4 +86,4 @@ global[zoneSymbolPrefix + 'FakeAsyncTestMacroTask'] = [{source: 'TestClass.myTim
8686global [ zoneSymbolPrefix + 'UNPATCHED_EVENTS' ] = [ 'scroll' , 'wheel' ] ;
8787// touchstart and scroll will be passive by default.
8888global [ zoneSymbolPrefix + 'PASSIVE_EVENTS' ] = [ 'touchstart' , 'scroll' ] ;
89- } ) ( typeof window === 'object' && window || typeof self === 'object' && self || global ) ;
89+ } ) ( globalThis ) ;
Original file line number Diff line number Diff line change @@ -90,6 +90,6 @@ beforeEach(function() {
9090
9191( < any > global ) . wtfMock = wtfMock ;
9292( < any > global ) . wtf = wtfMock ;
93- } ) ( typeof window === 'object' && window || typeof self === 'object' && self || global ) ;
93+ } ) ( globalThis ) ;
9494
9595declare const wtfMock : any ;
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ System.config({defaultJSExtensions: true});
1111System . import ( '../lib/browser/api-util' ) . then ( ( ) => {
1212 System . import ( '../lib/browser/browser-legacy' ) . then ( ( ) => {
1313 System . import ( '../lib/browser/browser' ) . then ( ( ) => {
14- const _global = typeof window !== 'undefined' ? window : self ;
1514 Zone . current . fork ( { name : 'webworker' } ) . run ( ( ) => {
1615 const websocket = new WebSocket ( 'ws://localhost:8001' ) ;
1716 websocket . addEventListener ( 'open' , ( ) => {
You can’t perform that action at this time.
0 commit comments