fix(compiler): stringify Object.create(null)
tokens (#16848)
PR Close #16848
This commit is contained in:

committed by
Kara Erickson

parent
fad03c3c14
commit
5e53956c2b
@ -184,6 +184,10 @@ export function stringify(token: any): string {
|
||||
return `${token.name}`;
|
||||
}
|
||||
|
||||
if (!token.toString) {
|
||||
return 'object';
|
||||
}
|
||||
|
||||
// WARNING: do not try to `JSON.stringify(token)` here
|
||||
// see https://github.com/angular/angular/issues/23440
|
||||
const res = token.toString();
|
||||
|
Reference in New Issue
Block a user