OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 #library('util.dart'); |
| 6 #import('node.dart'); |
| 7 |
| 8 typedef void UtilPumpCallback(Error error); |
| 9 |
| 10 class util native "require('util')" { |
| 11 static void debug(String string) native; |
| 12 static void log(String string) native; |
| 13 static void inspect(var object, [bool showHidden=false, num depth=2, |
| 14 bool colors=false]) native; |
| 15 static bool isArray(var object) native; |
| 16 static bool isRegExp(var object) native; |
| 17 static bool isDate(var object) native; |
| 18 static bool isError(var object) native; |
| 19 static pump(ReadableStream readableStream, WritableStream writeableStream, |
| 20 [UtilPumpCallback callback]) native; |
| 21 // the method inherits(a,b) doesn't make sense for Dart |
| 22 } |
OLD | NEW |