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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 2587203002: Correct handling of cross-frame functions in ddc. (Closed)
Patch Set: Created 4 years 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
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 04ed9e673bb499a962ad704800b21fd580044e71..d16d0d0db3b66102582a70c119906d92d06b450f 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -1209,8 +1209,8 @@ class Blob extends Interceptor {
return _create_2(blobParts, bag);
}
- static _create_1(parts) => JS('Blob', 'new Blob(#)', parts);
- static _create_2(parts, bag) => JS('Blob', 'new Blob(#, #)', parts, bag);
+ static _create_1(parts) => JS('Blob', 'new window.Blob(#)', parts);
+ static _create_2(parts, bag) => JS('Blob', 'new window.Blob(#, #)', parts, bag);
static _create_bag() => JS('var', '{}');
static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); }

Powered by Google App Engine
This is Rietveld 408576698