From 34b4d357578f9daf9d0edba2f9ccb7d3fbdcb7c0 Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Wed, 9 Apr 2014 07:46:33 +0000 Subject: 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 --- gin/isolate_holder.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gin') 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); -- cgit v1.1