[x] Did you run the analyzer with the --dev flag to get more information?
[x] Did you create a minimal reproduction in the playground?
Expected behavior
I have a Lit component (no Typescript) and the constructor assigns a default value to a property. If the value is an object, it is parsed as String instead of Object:
constructor() {
super();
// In the manifest, 'default' value should be "{ foo: 'bar' }" (JSON-stringified),
// not "{\n foo: 'bar'\n }"
this.foo = {
foo: 'bar'
};
}
Checklist
--dev
flag to get more information?Expected behavior
I have a Lit component (no Typescript) and the constructor assigns a default value to a property. If the value is an object, it is parsed as String instead of Object:
In the AST explorer, the object appears as ObjectLiteralExpression, so it could be proccessed as Object.