Author: [EMAIL PROTECTED]
Date: Tue Sep  9 01:35:40 2008
New Revision: 229

Removed:
    changes/[EMAIL PROTECTED]/add-shell-f-option/
Modified:
    branches/bleeding_edge/samples/shell.cc

Log:
Added -f option to the shell sample for compatibility with the other
engines.



Modified: branches/bleeding_edge/samples/shell.cc
==============================================================================
--- branches/bleeding_edge/samples/shell.cc     (original)
+++ branches/bleeding_edge/samples/shell.cc     Tue Sep  9 01:35:40 2008
@@ -65,6 +65,10 @@
      const char* str = argv[i];
      if (strcmp(str, "--shell") == 0) {
        run_shell = true;
+    } else if (strcmp(str, "-f") == 0) {
+      // Ignore any -f flags for compatibility with the other stand-
+      // alone JavaScript engines.
+      continue;
      } else if (strncmp(str, "--", 2) == 0) {
        printf("Warning: unknown flag %s.\n", str);
      } else {

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to