summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cfxjse_engine.cpp')
-rw-r--r--fxjs/cfxjse_engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cfxjse_engine.cpp b/fxjs/cfxjse_engine.cpp
index 915c4903fd..125ddc7cea 100644
--- a/fxjs/cfxjse_engine.cpp
+++ b/fxjs/cfxjse_engine.cpp
@@ -349,7 +349,7 @@ void CFXJSE_Engine::NormalPropertySetter(CFXJSE_Value* pOriginalValue,
CXFA_Node* pPropOrChild = nullptr;
XFA_Element eType = XFA_GetElementTypeForName(wsPropName.AsStringView());
if (eType != XFA_Element::Unknown)
- pPropOrChild = pNode->GetProperty(0, eType);
+ pPropOrChild = pNode->JSNode()->GetProperty(0, eType);
else
pPropOrChild = pNode->GetFirstChildByName(wsPropName.AsStringView());
@@ -483,7 +483,7 @@ bool CFXJSE_Engine::RunVariablesScript(CXFA_Node* pScriptNode) {
return false;
WideStringView wsScript;
- if (!pTextNode->TryCData(XFA_ATTRIBUTE_Value, wsScript))
+ if (!pTextNode->JSNode()->TryCData(XFA_ATTRIBUTE_Value, wsScript))
return false;
ByteString btScript = FX_UTF8Encode(wsScript);