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

Unified Diff: src/d8-windows.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
« src/d8-posix.cc ('K') | « src/d8-posix.cc ('k') | test/mjsunit/d8-os.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8-windows.cc
===================================================================
--- src/d8-windows.cc (revision 1649)
+++ src/d8-windows.cc (working copy)
@@ -35,20 +35,10 @@
namespace v8 {
-Handle<Value> Shell::System(const Arguments& args) {
- Handle<String> error_message =
- String::New("system() is not yet supported on your OS");
- return ThrowException(error_message);
+void Shell::AddOSMethods(Handle<ObjectTemplate> os_templ) {
+ os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment));
Søren Thygesen Gjesse 2009/03/31 12:28:02 Why did you leave setenv here? It is not implement
Erik Corry 2009/03/31 12:36:31 Good point. Removed.
}
-
-Handle<Value> Shell::ChangeDirectory(const Arguments& args) {
- Handle<String> error_message =
- String::New("chdir() is not yet supported on your OS");
- return ThrowException(error_message);
-}
-
-
Handle<Value> Shell::SetEnvironment(const Arguments& args) {
Handle<String> error_message =
String::New("setenv() is not yet supported on your OS");
« src/d8-posix.cc ('K') | « src/d8-posix.cc ('k') | test/mjsunit/d8-os.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698