refactor(core): remove custom globalThis (#40123)

This is provided by TypeScript since version 3.4

PR Close #40123
This commit is contained in:
Alan Agius 2020-12-15 11:06:02 +01:00 committed by Joey Perrott
parent effc079831
commit 475468cc8f
2 changed files with 0 additions and 5 deletions

View File

@ -12,8 +12,6 @@ declare var WorkerGlobalScope: any /** TODO #9100 */;
// We don't want to include the whole node.d.ts this this compilation unit so we'll just fake
// the global "global" var for now.
declare var global: any /** TODO #9100 */;
// Not yet available in TypeScript: https://github.com/Microsoft/TypeScript/pull/29332
declare var globalThis: any /** TODO #9100 */;
const __globalThis = typeof globalThis !== 'undefined' && globalThis;
const __window = typeof window !== 'undefined' && window;

View File

@ -8,9 +8,6 @@
import {global} from '../../src/util/global';
// Not yet available in TypeScript: https://github.com/Microsoft/TypeScript/pull/29332
declare var globalThis: any /** TODO #9100 */;
{
describe('global', () => {
it('should be global this value', () => {