Index: fpdfsdk/javascript/global.cpp |
diff --git a/fpdfsdk/javascript/global.cpp b/fpdfsdk/javascript/global.cpp |
index 78da7038b8a67b57a133cc1171a4b466a88de156..3ac8c403847290e3cfc87367da08ff081ff9f5bb 100644 |
--- a/fpdfsdk/javascript/global.cpp |
+++ b/fpdfsdk/javascript/global.cpp |
@@ -33,7 +33,7 @@ void CJS_Global::InitInstance(IJS_Runtime* pIRuntime) { |
CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(pIRuntime); |
JSGlobalAlternate* pGlobal = |
static_cast<JSGlobalAlternate*>(GetEmbedObject()); |
- pGlobal->Initial(pRuntime->GetReaderEnv()); |
+ pGlobal->Initial(pRuntime->GetFormFillEnv()); |
} |
JSGlobalData::JSGlobalData() |