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

Unified Diff: src/d8.cc

Issue 57050: Fix developer shell build on Windows (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/SConscript ('k') | src/d8-posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/SConscript ('k') | src/d8-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698