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

Side by Side Diff: frog/lib/node/util.dart

Issue 9034014: Add support for the node net module. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: new version of minfrog Created 8 years, 11 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:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« frog/lib/node/net.dart ('K') | « frog/lib/node/url.dart ('k') | frog/lib/node/vm.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698