pull/4950/head
pushkine 5 years ago
parent e4fdcb4322
commit 2e094a0b13

@ -12,8 +12,7 @@ export const is_cors =
} }
})(); })();
export const has_Symbol = typeof Symbol === 'function'; export const has_Symbol = typeof Symbol === 'function';
/* eslint-disable no-var */ declare const global: any;
declare var global: any;
export const globals = is_browser ? window : typeof globalThis !== 'undefined' ? globalThis : global; export const globals = is_browser ? window : typeof globalThis !== 'undefined' ? globalThis : global;
export const resolved_promise = Promise.resolve(); export const resolved_promise = Promise.resolve();
export let now = is_browser ? window.performance.now.bind(window.performance) : Date.now.bind(Date); export let now = is_browser ? window.performance.now.bind(window.performance) : Date.now.bind(Date);

Loading…
Cancel
Save