From 602fa698a54ea82628617561aab30099b6cf93ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Wed, 12 Apr 2017 13:19:53 +0200 Subject: [PATCH] refactor($injector): require standard class stringification ES6 classes now require Edge 14 or newer to work. Closes #15911 --- src/auto/injector.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/auto/injector.js b/src/auto/injector.js index 70e3c6eb4592..f45dc12bf5f0 100644 --- a/src/auto/injector.js +++ b/src/auto/injector.js @@ -876,9 +876,7 @@ function createInjector(modulesToLoad, strictDi) { } var result = func.$$ngIsClass; if (!isBoolean(result)) { - // Support: Edge 12-13 only - // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6156135/ - result = func.$$ngIsClass = /^(?:class\b|constructor\()/.test(stringifyFn(func)); + result = func.$$ngIsClass = /^class\b/.test(stringifyFn(func)); } return result; }