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

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

Issue 10207033: Make CanvasPixelArray pretent to be Uint8ClampedArray (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
Index: lib/compiler/implementation/lib/native_helper.dart
diff --git a/lib/compiler/implementation/lib/native_helper.dart b/lib/compiler/implementation/lib/native_helper.dart
index b9adb168ca35434cc1c1fcd9f0476ac1a3e545fa..c2181c951f907ee47a003e629eb1ed98580602ab 100644
--- a/lib/compiler/implementation/lib/native_helper.dart
+++ b/lib/compiler/implementation/lib/native_helper.dart
@@ -5,6 +5,7 @@
String typeNameInChrome(obj) {
String name = JS('String', "#.constructor.name", obj);
if (name == 'Window') return 'DOMWindow';
+ if (name == 'CanvasPixelArray') return 'Uint8ClampedArray';
return name;
}
« client/tests/client/dom/CanvasPixelArrayTypeAliasTest.dart ('K') | « frog/corejs.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698