Index: src/v8.cc |
diff --git a/src/v8.cc b/src/v8.cc |
index aebcc2f1d945104b5708673920737d6a80c8e621..a66fa2219900da17db8743ff5a6e306326c26372 100644 |
--- a/src/v8.cc |
+++ b/src/v8.cc |
@@ -57,6 +57,15 @@ static EntropySource entropy_source; |
bool V8::Initialize(Deserializer* des) { |
+ // Setting --harmony implies all other harmony flags. |
+ // TODO(rossberg): Is there a better place to put this? |
Steven
2011/10/12 11:54:38
This is indeed not such a cool place to put it. Yo
rossberg
2011/10/12 12:06:56
Well, I think flags.cc would be the wrong place to
|
+ if (FLAG_harmony) { |
+ FLAG_harmony_typeof = true; |
+ FLAG_harmony_scoping = true; |
+ FLAG_harmony_proxies = true; |
+ FLAG_harmony_weakmaps = true; |
+ } |
+ |
InitializeOncePerProcess(); |
// The current thread may not yet had entered an isolate to run. |