Invoke V8::Initialize() explicitly during V8 setup
authorJochen Eisinger <jochen@chromium.org>
Mon, 22 Sep 2014 06:46:17 +0000 (08:46 +0200)
committerJochen Eisinger <jochen@chromium.org>
Mon, 22 Sep 2014 06:46:17 +0000 (08:46 +0200)
BUG=none
R=jam@chromium.org

Review URL: https://codereview.chromium.org/581413002

fpdfsdk/src/javascript/JS_Runtime.cpp

index be11b04..d7802b5 100644 (file)
@@ -40,6 +40,7 @@ IFXJS_Runtime*                                        CJS_RuntimeFactory::NewJSRuntime(CPDFDoc_Environment* pApp)
                JS_Initial();
                 m_platform = v8::platform::CreateDefaultPlatform();
                 v8::V8::InitializePlatform(m_platform);
+                v8::V8::Initialize();
                
                m_bInit = TRUE;
        }