summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/global.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/global.cpp')
-rw-r--r--fpdfsdk/javascript/global.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/fpdfsdk/javascript/global.cpp b/fpdfsdk/javascript/global.cpp
index 32498e474c..c3fc548a73 100644
--- a/fpdfsdk/javascript/global.cpp
+++ b/fpdfsdk/javascript/global.cpp
@@ -93,6 +93,18 @@ void CJS_Global::InitInstance(IJS_Runtime* pIRuntime) {
pGlobal->Initial(pRuntime->GetReaderApp());
}
+JSGlobalData::JSGlobalData()
+ : nType(0),
+ dData(0),
+ bData(FALSE),
+ sData(""),
+ bPersistent(FALSE),
+ bDeleted(FALSE) {}
+
+JSGlobalData::~JSGlobalData() {
+ pData.Reset();
+}
+
JSGlobalAlternate::JSGlobalAlternate(CJS_Object* pJSObject)
: CJS_EmbedObj(pJSObject), m_pApp(nullptr) {}