Skip to content

Commit

Permalink
refactor($injector): require standard class stringification
Browse files Browse the repository at this point in the history
ES6 classes now require Edge 14 or newer to work.

Closes angular#15911
  • Loading branch information
mgol committed Apr 25, 2017
1 parent b277e3e commit 602fa69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/auto/injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 602fa69

Please sign in to comment.