Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 602fa69

Browse files
committed
refactor($injector): require standard class stringification
ES6 classes now require Edge 14 or newer to work. Closes #15911
1 parent b277e3e commit 602fa69

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/auto/injector.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,7 @@ function createInjector(modulesToLoad, strictDi) {
876876
}
877877
var result = func.$$ngIsClass;
878878
if (!isBoolean(result)) {
879-
// Support: Edge 12-13 only
880-
// See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6156135/
881-
result = func.$$ngIsClass = /^(?:class\b|constructor\()/.test(stringifyFn(func));
879+
result = func.$$ngIsClass = /^class\b/.test(stringifyFn(func));
882880
}
883881
return result;
884882
}

0 commit comments

Comments
 (0)