Index: sdk/lib/_internal/compiler/implementation/lib/native_helper.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/lib/native_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/native_helper.dart |
index f6f88c707939baaa596e9ce63a6a97ac97a48517..a41efdc83a4b9768cbbd4512f559ea6c57043eb9 100644 |
--- a/sdk/lib/_internal/compiler/implementation/lib/native_helper.dart |
+++ b/sdk/lib/_internal/compiler/implementation/lib/native_helper.dart |
@@ -71,6 +71,13 @@ String typeNameInIE(obj) { |
if (name == 'MSStyleCSSProperties') return 'CSSStyleDeclaration'; |
if (name == 'MouseWheelEvent') return 'WheelEvent'; |
if (name == 'Position') return 'Geoposition'; |
+ |
+ // Patches for types which report themselves as Objects. |
+ if (name == 'Object') { |
+ if (JS('bool', 'window.DataView && (# instanceof window.DataView)', obj)) { |
+ return 'DataView'; |
+ } |
+ } |
return name; |
} |