From e7dfd7a1884e1f6a5c767e814918b59a765654ed Mon Sep 17 00:00:00 2001 From: Dmitrij Kuba Date: Wed, 17 Feb 2021 14:42:41 +0200 Subject: [PATCH] refactor(platform-browser): remove `Intl` references (#40883) Since `Intl` API was dropped to use to improve browser support, would be nice to remove the references of it. PR Close #40883 --- packages/platform-browser/testing/src/browser_util.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/platform-browser/testing/src/browser_util.ts b/packages/platform-browser/testing/src/browser_util.ts index f0d14ae5c8..770cac346e 100644 --- a/packages/platform-browser/testing/src/browser_util.ts +++ b/packages/platform-browser/testing/src/browser_util.ts @@ -59,14 +59,6 @@ export class BrowserDetection { return this.isAndroid || this.isIE || this.isIOS7; } - // The Intl API is only natively supported in Chrome, Firefox, IE11 and Edge. - // This detector is needed in tests to make the difference between: - // 1) IE11/Edge: they have a native Intl API, but with some discrepancies - // 2) IE9/IE10: they use the polyfill, and so no discrepancies - get supportsNativeIntlApi(): boolean { - return !!(global).Intl && (global).Intl !== (global).IntlPolyfill; - } - get isChromeDesktop(): boolean { return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Mobile Safari') == -1 && this._ua.indexOf('Edge') == -1;