fix(compiler): emits quoted keys only iff they are quoted in the original template
fixes #14292
This commit is contained in:

committed by
Jason Aden

parent
798947efa4
commit
9c1f6fd06f
@ -298,7 +298,7 @@ class ForJitSerializer {
|
||||
}
|
||||
visitStringMap(map: {[key: string]: any}, context: any): any {
|
||||
return new o.LiteralMapExpr(Object.keys(map).map(
|
||||
(key) => new o.LiteralMapEntry(key, visitValue(map[key], this, context))));
|
||||
(key) => new o.LiteralMapEntry(key, visitValue(map[key], this, context), false)));
|
||||
}
|
||||
visitPrimitive(value: any, context: any): any { return o.literal(value); }
|
||||
visitOther(value: any, context: any): any {
|
||||
|
Reference in New Issue
Block a user