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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 1683403005: Fix MessageEvent.data to convert using structured clone. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Word-wrap the comment Created 4 years, 10 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:
Download patch
« no previous file with comments | « no previous file | tools/dom/templates/html/impl/impl_MessageEvent.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 45057f413572e1ed721207c56fd8746e8f23ecc8..c306d5b8a1ed9a659a3e21e934ad435565447f64 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -26122,8 +26122,12 @@ class MessageEvent extends Event {
@DomName('MessageEvent.data')
@DocsEditable()
- Object get data => wrap_jso(_blink.BlinkMessageEvent.instance.data_Getter_(unwrap_jso(this)));
-
+ // TODO(alanknight): This really should be generated by the
+ // _OutputConversion in the systemnative.py script, but that doesn't
+ // use those conversions right now, so do this as a one-off.
+ dynamic get data => convertNativeToDart_SerializedScriptValue(
+ _blink.BlinkMessageEvent.instance.data_Getter_(unwrap_jso(this)));
+
@DomName('MessageEvent.lastEventId')
@DocsEditable()
@Unstable()
« no previous file with comments | « no previous file | tools/dom/templates/html/impl/impl_MessageEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698