Index: tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
index 1b4b7e6df09b6fb2aa55f65ccf23e5c174f0e184..191d2db93516572a90a96c2fe9d2c416bb2a3087 100644 |
--- a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
@@ -295,16 +295,9 @@ $if DARTIUM |
createdParametersValid = createdParametersValid && parameter.isOptional; |
}); |
} |
- |
- // Get the created constructor source and look at the initializer; |
- // Must call super.created() if not its as an error. |
- var createdSource = methodMirror.source; |
- superCreatedCalled = createdSource.contains("super.created("); |
} |
- if (!superCreatedCalled) { |
- throw new DomException.jsInterop('created constructor initializer must call super.created()'); |
- } else if (!createdParametersValid) { |
+ if (!createdParametersValid) { |
throw new DomException.jsInterop('created constructor must have no parameters'); |
} |