fix(zone.js): restore definition of global (#31453)

This partially reverts some changes from 71b9371180 (diff-dd469785fca8680a5b33b1e81c5cfd91R1420)
These broke the g3sync of zone.js because we use the output of the TypeScript compiler directly, rather than rely on the rollup commonjs plugin to define the global symbol

PR Close #31453
This commit is contained in:
Alex Eagle
2019-07-08 11:30:29 -07:00
committed by Jason Aden
parent 6aaca21c27
commit e6f1b04cd5
8 changed files with 24 additions and 6 deletions

View File

@ -557,4 +557,4 @@
// Export the class so that new instances can be created with proper
// constructor params.
(Zone as any)['FakeAsyncTestZoneSpec'] = FakeAsyncTestZoneSpec;
})(global);
})(typeof window === 'object' && window || typeof self === 'object' && self || global);