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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: frog/minfrog
===================================================================
--- frog/minfrog (revision 3380)
+++ frog/minfrog (working copy)
@@ -2304,10 +2304,26 @@
path = require('path');
// ********** Code for top level **************
function createSandbox() {
- return {'require': require, 'process': process, 'console': console,
+ return {
+ 'require': require,
+ 'process': process,
+ 'console': console,
'Buffer' : Buffer,
- 'setTimeout': setTimeout, 'clearTimeout': clearTimeout};
+ 'setTimeout': setTimeout,
+ 'clearTimeout': clearTimeout,
+ 'ArrayBuffer': ArrayBuffer,
+ 'Int8Array': Int8Array,
+ 'Uint8Array': Uint8Array,
+ 'Int16Array': Int16Array,
+ 'Uint16Array': Uint16Array,
+ 'Int32Array': Int32Array,
+ 'Uint32Array': Uint32Array,
+ 'Float32Array': Float32Array,
+ 'Float64Array': Float64Array,
+ 'DataView': DataView
+ };
}
+
function get$_process() {
return process;
}

Powered by Google App Engine
This is Rietveld 408576698