Author: [EMAIL PROTECTED]
Date: Tue Sep 9 01:05:35 2008
New Revision: 227
Added:
changes/[EMAIL PROTECTED]/add-shell-f-option/
changes/[EMAIL PROTECTED]/add-shell-f-option/bleeding_edge/
- copied from r226, /branches/bleeding_edge/
Modified:
changes/[EMAIL PROTECTED]/add-shell-f-option/bleeding_edge/samples/shell.cc
Log:
Added -f option to the shell sample for compatibility with the other
engines.
Modified:
changes/[EMAIL PROTECTED]/add-shell-f-option/bleeding_edge/samples/shell.cc
==============================================================================
--- /branches/bleeding_edge/samples/shell.cc (original)
+++
changes/[EMAIL PROTECTED]/add-shell-f-option/bleeding_edge/samples/shell.cc
Tue Sep 9 01:05:35 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
-~----------~----~----~----~------~----~------~--~---