Index: fpdfsdk/src/javascript/JS_Runtime.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Runtime.cpp b/fpdfsdk/src/javascript/JS_Runtime.cpp |
index ecb53d2d724fe8e6a5d767d5e89f70b83a57d431..3e1f74beed390a09e4a8e54ddd9d5914d01448c9 100644 |
--- a/fpdfsdk/src/javascript/JS_Runtime.cpp |
+++ b/fpdfsdk/src/javascript/JS_Runtime.cpp |
@@ -77,7 +77,7 @@ CJS_Runtime::CJS_Runtime(CPDFDoc_Environment* pApp) |
v8::HandleScope handle_scope(isolate); |
if (CPDFXFA_App::GetInstance()->IsJavaScriptInitialized()) { |
CJS_Context* pContext = (CJS_Context*)NewContext(); |
- FXJS_InitializeRuntime(GetIsolate(), this, m_context); |
+ FXJS_InitializeRuntime(GetIsolate(), this, &m_context, &m_StaticObjects); |
ReleaseContext(pContext); |
return; |
} |
@@ -88,7 +88,7 @@ CJS_Runtime::CJS_Runtime(CPDFDoc_Environment* pApp) |
CPDFXFA_App::GetInstance()->SetJavaScriptInitialized(TRUE); |
CJS_Context* pContext = (CJS_Context*)NewContext(); |
- FXJS_InitializeRuntime(GetIsolate(), this, m_context); |
+ FXJS_InitializeRuntime(GetIsolate(), this, &m_context, &m_StaticObjects); |
ReleaseContext(pContext); |
} |