Chromium Code Reviews| 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"); |