Index: fpdfsdk/src/javascript/Document.cpp |
diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp |
index 27a3971e15e40c750232c5de34edcac3df6f529a..796fddb5ed525eda52fc4f53ce23d3dd131aeab3 100644 |
--- a/fpdfsdk/src/javascript/Document.cpp |
+++ b/fpdfsdk/src/javascript/Document.cpp |
@@ -1428,7 +1428,7 @@ FX_BOOL Document::icons(IFXJS_Context* cc, |
if (pObj.IsEmpty()) |
return FALSE; |
- CJS_Icon* pJS_Icon = (CJS_Icon*)FXJS_GetPrivate(pObj); |
+ CJS_Icon* pJS_Icon = (CJS_Icon*)FXJS_GetPrivate(m_isolate, pObj); |
if (!pJS_Icon) |
return FALSE; |
@@ -1472,7 +1472,7 @@ FX_BOOL Document::getIcon(IFXJS_Context* cc, |
if (pObj.IsEmpty()) |
return FALSE; |
- CJS_Icon* pJS_Icon = (CJS_Icon*)FXJS_GetPrivate(pObj); |
+ CJS_Icon* pJS_Icon = (CJS_Icon*)FXJS_GetPrivate(m_isolate, pObj); |
if (!pJS_Icon) |
return FALSE; |