Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/native_helper.dart

Issue 11757002: Fixing ArrayBuffer et al on IE. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698