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

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

Issue 23496029: Fixing console. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/dom.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8964d19628a9c390ad93afbb5c5b8083c47e0eb4..3212a367e19783da7c17a1481162cb42f14a1aa4 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -1852,7 +1852,9 @@ class CompositionEvent extends UIEvent native "CompositionEvent" {
@DomName('Console')
class Console {
- static Console _safeConsole = new Console();
+ Console._safe() {}
+
+ static Console _safeConsole = new Console._safe();
bool get _isConsoleDefined => JS('bool', 'typeof console != "undefined"');
« no previous file with comments | « no previous file | tools/dom/dom.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698