Index: fpdfsdk/src/javascript/JS_EventHandler.cpp |
diff --git a/fpdfsdk/src/javascript/JS_EventHandler.cpp b/fpdfsdk/src/javascript/JS_EventHandler.cpp |
index 1eee92ddc16908330180d0b1c81e35d4e55d0253..acaacf294306b0b4ece4d48ba2bba3d265f83846 100644 |
--- a/fpdfsdk/src/javascript/JS_EventHandler.cpp |
+++ b/fpdfsdk/src/javascript/JS_EventHandler.cpp |
@@ -615,11 +615,13 @@ Field* CJS_EventHandler::Source() { |
CJS_Runtime* pRuntime = m_pJSContext->GetJSRuntime(); |
- JSFXObject pDocObj = JS_NewFxDynamicObj( |
- *pRuntime, m_pJSContext, JS_GetObjDefnID(*pRuntime, L"Document")); |
+ v8::Local<v8::Object> pDocObj = |
+ JS_NewFxDynamicObj(pRuntime->GetIsolate(), m_pJSContext, |
+ JS_GetObjDefnID(pRuntime->GetIsolate(), L"Document")); |
ASSERT(pDocObj.IsEmpty() == FALSE); |
- JSFXObject pFieldObj = JS_NewFxDynamicObj( |
- *pRuntime, m_pJSContext, JS_GetObjDefnID(*pRuntime, L"Field")); |
+ v8::Local<v8::Object> pFieldObj = |
+ JS_NewFxDynamicObj(pRuntime->GetIsolate(), m_pJSContext, |
+ JS_GetObjDefnID(pRuntime->GetIsolate(), L"Field")); |
ASSERT(pFieldObj.IsEmpty() == FALSE); |
CJS_Document* pJSDocument = (CJS_Document*)JS_GetPrivate(pDocObj); |
@@ -650,11 +652,13 @@ Field* CJS_EventHandler::Target_Field() { |
CJS_Runtime* pRuntime = m_pJSContext->GetJSRuntime(); |
- JSFXObject pDocObj = JS_NewFxDynamicObj( |
- *pRuntime, m_pJSContext, JS_GetObjDefnID(*pRuntime, L"Document")); |
+ v8::Local<v8::Object> pDocObj = |
+ JS_NewFxDynamicObj(pRuntime->GetIsolate(), m_pJSContext, |
+ JS_GetObjDefnID(pRuntime->GetIsolate(), L"Document")); |
ASSERT(pDocObj.IsEmpty() == FALSE); |
- JSFXObject pFieldObj = JS_NewFxDynamicObj( |
- *pRuntime, m_pJSContext, JS_GetObjDefnID(*pRuntime, L"Field")); |
+ v8::Local<v8::Object> pFieldObj = |
+ JS_NewFxDynamicObj(pRuntime->GetIsolate(), m_pJSContext, |
+ JS_GetObjDefnID(pRuntime->GetIsolate(), L"Field")); |
ASSERT(pFieldObj.IsEmpty() == FALSE); |
CJS_Document* pJSDocument = (CJS_Document*)JS_GetPrivate(pDocObj); |