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 80211b37744221116281090a481e3c4241ec5645..bb0374536b62b44f8081edec0b990a6c6f65310e 100644 |
--- a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
@@ -402,6 +402,7 @@ $else |
dartClass = _blink.Blink_Utils.constructElement(customElementClass, $this); |
} catch (e) { |
dartClass = HtmlElement.internalCreateHtmlElement(); |
+ dartClass.badUpgrade(); |
throw e; |
} finally { |
// Need to remember the Dart class that was created for this custom so |