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

Side by Side Diff: frog/minfrog

Issue 9034014: Add support for the node net module. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' 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
1 #!/usr/bin/env node 1 #!/usr/bin/env node
2 // ********** Library dart:core ************** 2 // ********** Library dart:core **************
3 // ********** Natives dart:core ************** 3 // ********** Natives dart:core **************
4 function $throw(e) { 4 function $throw(e) {
5 // If e is not a value, we can use V8's captureStackTrace utility method. 5 // If e is not a value, we can use V8's captureStackTrace utility method.
6 // TODO(jmesserly): capture the stack trace on other JS engines. 6 // TODO(jmesserly): capture the stack trace on other JS engines.
7 if (e && (typeof e == 'object') && Error.captureStackTrace) { 7 if (e && (typeof e == 'object') && Error.captureStackTrace) {
8 // TODO(jmesserly): this will clobber the e.stack property 8 // TODO(jmesserly): this will clobber the e.stack property
9 Error.captureStackTrace(e, $throw); 9 Error.captureStackTrace(e, $throw);
10 } 10 }
(...skipping 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 return this.write($0, "utf8"); 2297 return this.write($0, "utf8");
2298 }; 2298 };
2299 // ********** Code for vm ************** 2299 // ********** Code for vm **************
2300 vm = require('vm'); 2300 vm = require('vm');
2301 // ********** Code for fs ************** 2301 // ********** Code for fs **************
2302 fs = require('fs'); 2302 fs = require('fs');
2303 // ********** Code for path ************** 2303 // ********** Code for path **************
2304 path = require('path'); 2304 path = require('path');
2305 // ********** Code for top level ************** 2305 // ********** Code for top level **************
2306 function createSandbox() { 2306 function createSandbox() {
2307 return {'require': require, 'process': process, 'console': console, 2307 return {
2308 'require': require,
2309 'process': process,
2310 'console': console,
2308 'Buffer' : Buffer, 2311 'Buffer' : Buffer,
2309 'setTimeout': setTimeout, 'clearTimeout': clearTimeout}; 2312 'setTimeout': setTimeout,
2313 'clearTimeout': clearTimeout,
2314 'ArrayBuffer': ArrayBuffer,
2315 'Int8Array': Int8Array,
2316 'Uint8Array': Uint8Array,
2317 'Int16Array': Int16Array,
2318 'Uint16Array': Uint16Array,
2319 'Int32Array': Int32Array,
2320 'Uint32Array': Uint32Array,
2321 'Float32Array': Float32Array,
2322 'Float64Array': Float64Array,
2323 'DataView': DataView
2324 };
2310 } 2325 }
2326
2311 function get$_process() { 2327 function get$_process() {
2312 return process; 2328 return process;
2313 } 2329 }
2314 function get$process() { 2330 function get$process() {
2315 return new Process(get$_process()); 2331 return new Process(get$_process());
2316 } 2332 }
2317 // ********** Library file_system ************** 2333 // ********** Library file_system **************
2318 // ********** Code for top level ************** 2334 // ********** Code for top level **************
2319 function joinPaths(path1, path2) { 2335 function joinPaths(path1, path2) {
2320 var pieces = path1.split("/"); 2336 var pieces = path1.split("/");
(...skipping 12470 matching lines...) Expand 10 before | Expand all | Expand 10 after
14791 $globals._RED_COLOR = "\x1b[31m"; 14807 $globals._RED_COLOR = "\x1b[31m";
14792 } 14808 }
14793 var const$0000 = Object.create(EmptyQueueException.prototype, {}); 14809 var const$0000 = Object.create(EmptyQueueException.prototype, {});
14794 var const$0001 = Object.create(_DeletedKeySentinel.prototype, {}); 14810 var const$0001 = Object.create(_DeletedKeySentinel.prototype, {});
14795 var const$0005 = Object.create(NoMoreElementsException.prototype, {}); 14811 var const$0005 = Object.create(NoMoreElementsException.prototype, {});
14796 var const$0007 = Object.create(IllegalAccessException.prototype, {}); 14812 var const$0007 = Object.create(IllegalAccessException.prototype, {});
14797 var const$0008 = ImmutableList.ImmutableList$from$factory([]); 14813 var const$0008 = ImmutableList.ImmutableList$from$factory([]);
14798 var $globals = {}; 14814 var $globals = {};
14799 $static_init(); 14815 $static_init();
14800 main(); 14816 main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698