Index: src/d8.cc |
=================================================================== |
--- src/d8.cc (revision 1647) |
+++ src/d8.cc (working copy) |
@@ -163,28 +163,6 @@ |
} |
-Handle<Value> Shell::SetEnvironment(const Arguments& args) { |
- if (args.Length() != 2) { |
- const char* message = "setenv() takes two arguments"; |
- return ThrowException(String::New(message)); |
- } |
- String::Utf8Value var(args[0]); |
- String::Utf8Value value(args[1]); |
- if (*var == NULL) { |
- const char* message = |
- "os.setenv(): String conversion of variable name failed."; |
- return ThrowException(String::New(message)); |
- } |
- if (*value == NULL) { |
- const char* message = |
- "os.setenv(): String conversion of variable contents failed."; |
- return ThrowException(String::New(message)); |
- } |
- setenv(*var, *value, 1); |
- return v8::Undefined(); |
-} |
- |
- |
Handle<Value> Shell::Load(const Arguments& args) { |
for (int i = 0; i < args.Length(); i++) { |
HandleScope handle_scope; |