diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-05 10:55:51 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-05 10:55:51 +0000 |
commit | 89c7c2887d1717026a0c0b30270a9b8cc93a953c (patch) | |
tree | ecd6dce03a4ad8069d6f2b9af3b3f04bd75a0ba9 /gin | |
parent | 44a788b50006f9dfea9165e2309a5b3c91fd5845 (diff) | |
download | chromium_src-89c7c2887d1717026a0c0b30270a9b8cc93a953c.zip chromium_src-89c7c2887d1717026a0c0b30270a9b8cc93a953c.tar.gz chromium_src-89c7c2887d1717026a0c0b30270a9b8cc93a953c.tar.bz2 |
[gin] when creating an IsolateHolder for an existing Isolate, don't setup v8
BUG=321631
R=aa@chromium.org
Review URL: https://codereview.chromium.org/106403002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238928 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin')
-rw-r--r-- | gin/isolate_holder.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc index c9f435c..1ddbe78 100644 --- a/gin/isolate_holder.cc +++ b/gin/isolate_holder.cc @@ -33,6 +33,8 @@ void EnsureV8Initialized(bool gin_managed) { } v8_is_initialized = true; v8_is_gin_managed = gin_managed; + if (!gin_managed) + return; v8::V8::SetArrayBufferAllocator(ArrayBufferAllocator::SharedInstance()); static const char v8_flags[] = "--use_strict --harmony"; |