| Index: tools/dom/templates/html/dart2js/impl_Console.darttemplate
|
| diff --git a/tools/dom/templates/html/dart2js/impl_Console.darttemplate b/tools/dom/templates/html/dart2js/impl_Console.darttemplate
|
| index 3f6c4cd3119cf95ce5c306b27d322647fa4ebfc9..4372f85e30b79e56c9a46933321839009246fae5 100644
|
| --- a/tools/dom/templates/html/dart2js/impl_Console.darttemplate
|
| +++ b/tools/dom/templates/html/dart2js/impl_Console.darttemplate
|
| @@ -6,9 +6,9 @@ part of $LIBRARYNAME;
|
|
|
| $(ANNOTATIONS)$(CLASS_MODIFIERS)class Console {
|
|
|
| - Console._safe() {}
|
| + const Console._safe();
|
|
|
| - static Console _safeConsole = new Console._safe();
|
| + static const Console _safeConsole = const Console._safe();
|
|
|
| bool get _isConsoleDefined => JS('bool', 'typeof console != "undefined"');
|
|
|
| @@ -34,7 +34,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class Console {
|
|
|
| @DomName('Console.dir')
|
| void dir(Object arg) => _isConsoleDefined ?
|
| - JS('void', 'console.debug(#)', arg) : null;
|
| + JS('void', 'console.dir(#)', arg) : null;
|
|
|
| @DomName('Console.dirxml')
|
| void dirxml(Object arg) => _isConsoleDefined ?
|
|
|