Index: src/d8.cc |
=================================================================== |
--- src/d8.cc (revision 984) |
+++ src/d8.cc (working copy) |
@@ -388,7 +388,9 @@ |
Context::Scope context_scope(evaluation_context_); |
for (int i = 1; i < argc; i++) { |
char* str = argv[i]; |
- if (strcmp(str, "-f") == 0) { |
+ if (strcmp(str, "--shell") == 0) { |
+ run_shell = true; |
+ } else if (strcmp(str, "-f") == 0) { |
// Ignore any -f flags for compatibility with other stand-alone |
// JavaScript engines. |
continue; |