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

Unified Diff: src/d8.cc

Issue 56107: * Add rmdir, mkdir -p and umask to d8 on Unix.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « src/d8.h ('k') | src/d8-posix.cc » ('j') | src/d8-posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
===================================================================
--- src/d8.cc (revision 1649)
+++ src/d8.cc (working copy)
@@ -344,9 +344,7 @@
global_template->Set(String::New("version"), FunctionTemplate::New(Version));
Handle<ObjectTemplate> os_templ = ObjectTemplate::New();
- os_templ->Set(String::New("system"), FunctionTemplate::New(System));
- os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory));
- os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment));
+ AddOSMethods(os_templ);
global_template->Set(String::New("os"), os_templ);
utility_context_ = Context::New(NULL, global_template);
« no previous file with comments | « src/d8.h ('k') | src/d8-posix.cc » ('j') | src/d8-posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698