Index: xfa/fxfa/app/xfa_ffdochandler.cpp |
diff --git a/xfa/fxfa/app/xfa_ffdochandler.cpp b/xfa/fxfa/app/xfa_ffdochandler.cpp |
index e65dd914d167326c0405757f90f2112ddee5be4a..38e872a0432b4208fd21447911ee683f8ce24d5e 100644 |
--- a/xfa/fxfa/app/xfa_ffdochandler.cpp |
+++ b/xfa/fxfa/app/xfa_ffdochandler.cpp |
@@ -56,7 +56,5 @@ FX_BOOL CXFA_FFDocHandler::RunDocScript(CXFA_FFDoc* hDoc, |
return pScriptContext->RunScript( |
(XFA_SCRIPTLANGTYPE)eScriptType, wsScript, pRetValue, |
- pThisValue |
- ? static_cast<CXFA_Object*>(FXJSE_Value_ToObject(pThisValue, nullptr)) |
- : nullptr); |
+ pThisValue ? CXFA_ScriptContext::ToObject(pThisValue, nullptr) : nullptr); |
} |