Index: sdk/lib/html/dart2js/html_dart2js.dart |
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
index 3a1e464a3ce902b7ed2fa402ec09a573789d4a18..6773565abd5928787fc96fb547798532cc8fd5df 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -18415,6 +18415,11 @@ class MessageEvent extends Event native "MessageEvent" { |
if (source == null) { |
source = window; |
} |
+ if (!Device.isIE) { |
+ return JS('MessageEvent', 'new MessageEvent(#, {bubbles: #, cancelable: #, data: #, origin: #, lastEventId: #, source: #, ports: #})', |
+ type, canBubble, cancelable, data, origin, lastEventId, source, |
+ messagePorts); |
+ } |
var event = document._createEvent("MessageEvent"); |
event._initMessageEvent(type, canBubble, cancelable, data, origin, |
lastEventId, source, messagePorts); |