fix(ivy): inheriting injectable definition from undecorated class not working on IE10 in JIT mode (#34305)

The way definitions are added in JIT mode is through `Object.defineProperty`, but the problem is that in IE10 properties defined through `defineProperty` won't be inherited which means that inheriting injectable definitions no longer works. These changes add a workaround only for JIT mode where we define a fallback method for retrieving the definition. This isn't ideal, but it should only be required until v10 where we'll no longer support inheriting injectable definitions from undecorated classes.

PR Close #34305
This commit is contained in:
crisbeto
2019-12-11 22:18:38 +01:00
committed by Kara Erickson
parent 65fb2fd765
commit d83599d8b1
3 changed files with 26 additions and 2 deletions

View File

@ -38,6 +38,9 @@
{
"name": "NG_PROV_DEF"
},
{
"name": "NG_PROV_DEF_FALLBACK"
},
{
"name": "NG_TEMP_TOKEN_PATH"
},