Skip to content

Exception: created constructor initializer must call super.created() #25028

@markhats

Description

@markhats

Just upgraded to 1.13 and now get this exception when some of my custom elements are registered.

Traced it to the following lines in the _hasCreatedConstructor method in html_dartium.dart.

var createdSource = methodMirror.source;
superCreatedCalled = createdSource.contains("super.created(");

This seems to search for the exact string "super.created(" in the element's constructor which then fails if there is any whitespace before the bracket character. Removing the whitespace seems to fix the problem.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions