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

Unified Diff: sdk/lib/html/html_common/conversions.dart

Issue 14367012: Move to new dart:typeddata types for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert generated files for html lib Created 7 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: sdk/lib/html/html_common/conversions.dart
diff --git a/sdk/lib/html/html_common/conversions.dart b/sdk/lib/html/html_common/conversions.dart
index b8d9183fd5b6bda5507ff53f152573dddc28edc6..2892b7d46ed1ff0514f6752a98df871b6de1c866 100644
--- a/sdk/lib/html/html_common/conversions.dart
+++ b/sdk/lib/html/html_common/conversions.dart
@@ -139,9 +139,9 @@ _convertDartToNative_PrepareForStructuredClone(value) {
// TODO(sra): Firefox: How to convert _TypedImageData on the other end?
if (e is ImageData) return e;
- if (e is ArrayBuffer) return e;
+ if (e is ByteBuffer) return e;
- if (e is ArrayBufferView) return e;
+ if (e is TypedData) return e;
if (e is Map) {
var slot = findSlot(e);
@@ -328,7 +328,7 @@ bool isImmutableJavaScriptArray(value) =>
const String _serializedScriptValue =
'num|String|bool|'
'=List|=Object|'
- 'Blob|File|ArrayBuffer|ArrayBufferView'
+ 'Blob|File|ByteBuffer|TypedData'
// TODO(sra): Add Date, RegExp.
;
const annotation_Creates_SerializedScriptValue =

Powered by Google App Engine
This is Rietveld 408576698