fix(compiler): make sure provider values with name property don’t break.

Fixes #13394
Closes #13445
This commit is contained in:
Tobias Bosch
2016-12-13 16:27:40 -08:00
committed by Victor Berchet
parent a8d237581d
commit f5f1d5f65c
2 changed files with 11 additions and 3 deletions

View File

@ -95,11 +95,11 @@ export function stringify(token: any): string {
}
if (token.overriddenName) {
return token.overriddenName;
return `${token.overriddenName}`;
}
if (token.name) {
return token.name;
return `${token.name}`;
}
const res = token.toString();