Index: tools/dom/templates/html/impl/impl_MessageEvent.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate b/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate |
index 1b13a76785dc1b6654fa2b62272cfc419464f4cb..0bb6d46238ac1074499cb944066502addc9023cd 100644 |
--- a/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate |
@@ -22,7 +22,7 @@ $if DART2JS |
messagePorts); |
} |
$endif |
- var event = document._createEvent("MessageEvent"); |
+ MessageEvent event = document._createEvent("MessageEvent"); |
event._initMessageEvent(type, canBubble, cancelable, data, origin, |
lastEventId, source, messagePorts); |
return event; |