Index: tools/dom/templates/html/impl/impl_Node.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate |
index 17bc6014b455b415b92159f18c8cd7eb5f7d1ef6..4362733abc88d6069ae2b1ed90f24bc93d6cf44b 100644 |
--- a/tools/dom/templates/html/impl/impl_Node.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Node.darttemplate |
@@ -200,14 +200,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS |
$if DART2JS |
Node._created() : super._created(); |
$else |
- Node._created() : super._created() { |
- // By this point blink_jsObject should be setup if it's not then we weren't |
- // called by the registerElement createdCallback - probably created() was |
- // called directly which is verboten. |
- if (this.blink_jsObject == null) { |
- throw new DomException.jsInterop("the created constructor cannot be called directly"); |
- } |
- } |
+ Node._created() : super._created(); |
$endif |
/** |
@@ -304,7 +297,7 @@ $if DARTIUM |
*/ |
@DomName('Node.childNodes') |
@DocsEditable() |
- List<Node> get childNodes => wrap_jso(_blink.BlinkNode.instance.childNodes_Getter_(unwrap_jso(this))); |
+ List<Node> get childNodes => _blink.BlinkNode.instance.childNodes_Getter_(this); |
$else |
/** |
* A list of this node's children. |