| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 $(ANNOTATIONS)class Console { | 7 $(ANNOTATIONS)class Console { |
| 8 | 8 |
| 9 static Console safeConsole = new Console(); | 9 static Console safeConsole = new Console(); |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 @DomName('Console.profileEnd') | 73 @DomName('Console.profileEnd') |
| 74 void profileEnd(String title) => _isConsoleDefined ? | 74 void profileEnd(String title) => _isConsoleDefined ? |
| 75 JS('void', 'console.profileEnd(#)', title) : null; | 75 JS('void', 'console.profileEnd(#)', title) : null; |
| 76 | 76 |
| 77 @DomName('Console.time') | 77 @DomName('Console.time') |
| 78 void time(String title) => _isConsoleDefined ? | 78 void time(String title) => _isConsoleDefined ? |
| 79 JS('void', 'console.time(#)', title) : null; | 79 JS('void', 'console.time(#)', title) : null; |
| 80 | 80 |
| 81 @DomName('Console.timeEnd') | 81 @DomName('Console.timeEnd') |
| 82 void timeEnd(String title, Object arg) => _isConsoleDefined ? | 82 void timeEnd(String timerName) => _isConsoleDefined ? |
| 83 JS('void', 'console.timeEnd(#, #)', title, arg) : null; | 83 JS('void', 'console.timeEnd(#)', timerName) : null; |
| 84 | 84 |
| 85 @DomName('Console.timeStamp') | 85 @DomName('Console.timeStamp') |
| 86 void timeStamp(Object arg) => _isConsoleDefined ? | 86 void timeStamp(Object arg) => _isConsoleDefined ? |
| 87 JS('void', 'console.timeStamp(#)', arg) : null; | 87 JS('void', 'console.timeStamp(#)', arg) : null; |
| 88 | 88 |
| 89 @DomName('Console.trace') | 89 @DomName('Console.trace') |
| 90 void trace(Object arg) => _isConsoleDefined ? | 90 void trace(Object arg) => _isConsoleDefined ? |
| 91 JS('void', 'console.trace(#)', arg) : null; | 91 JS('void', 'console.trace(#)', arg) : null; |
| 92 | 92 |
| 93 @DomName('Console.warn') | 93 @DomName('Console.warn') |
| 94 void warn(Object arg) => _isConsoleDefined ? | 94 void warn(Object arg) => _isConsoleDefined ? |
| 95 JS('void', 'console.warn(#)', arg) : null; | 95 JS('void', 'console.warn(#)', arg) : null; |
| 96 $!MEMBERS | 96 $!MEMBERS |
| 97 } | 97 } |
| OLD | NEW |