Index: samples/shell.cc |
diff --git a/samples/shell.cc b/samples/shell.cc |
index 6b67df6c6c56467611d4277426df9af250e07574..460457552c5c79e7102c10332a1e47740c5306cb 100644 |
--- a/samples/shell.cc |
+++ b/samples/shell.cc |
@@ -45,6 +45,7 @@ v8::Handle<v8::Value> Quit(const v8::Arguments& args); |
v8::Handle<v8::Value> Version(const v8::Arguments& args); |
v8::Handle<v8::String> ReadFile(const char* name); |
void ReportException(v8::TryCatch* handler); |
+void SetFlagsFromString(const char* flags); |
int RunMain(int argc, char* argv[]) { |
@@ -344,3 +345,8 @@ void ReportException(v8::TryCatch* try_catch) { |
} |
} |
} |
+ |
+ |
+void SetFlagsFromString(const char* flags) { |
+ v8::V8::SetFlagsFromString(flags, strlen(flags)); |
+} |