diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-09 07:46:33 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-09 07:46:33 +0000 |
commit | 34b4d357578f9daf9d0edba2f9ccb7d3fbdcb7c0 (patch) | |
tree | 148a4b12ba4032bf4798c5be0accafede305318c /gin | |
parent | bb31c2c058dc60ccc2faebd8c93870611cb5f6d9 (diff) | |
download | chromium_src-34b4d357578f9daf9d0edba2f9ccb7d3fbdcb7c0.zip chromium_src-34b4d357578f9daf9d0edba2f9ccb7d3fbdcb7c0.tar.gz chromium_src-34b4d357578f9daf9d0edba2f9ccb7d3fbdcb7c0.tar.bz2 |
Don't enable all harmony features in mojo/gin
We shouldn't use experimental features. Restrict usage to promises which
is actually used by mojo/js and about to launch.
BUG=360554
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/228253002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin')
-rw-r--r-- | gin/isolate_holder.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc index 805ab27..3d6cb4c 100644 --- a/gin/isolate_holder.cc +++ b/gin/isolate_holder.cc @@ -40,8 +40,7 @@ void EnsureV8Initialized(gin::IsolateHolder::ScriptMode mode, v8::V8::InitializePlatform(V8Platform::Get()); v8::V8::SetArrayBufferAllocator(ArrayBufferAllocator::SharedInstance()); if (mode == gin::IsolateHolder::kStrictMode) { - // TODO(jochen): drop --harmony. it's really too unstable and broad to use. - static const char v8_flags[] = "--use_strict --harmony"; + static const char v8_flags[] = "--use_strict --harmony_promises"; v8::V8::SetFlagsFromString(v8_flags, sizeof(v8_flags) - 1); } v8::V8::SetEntropySource(&GenerateEntropy); |