Index: fpdfsdk/src/javascript/Document.cpp |
diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp |
index bccf08b2710c76b919df78fbf64e8cb5af321daa..105e487e1ca6a288e745860b23038b2c0116b1ca 100644 |
--- a/fpdfsdk/src/javascript/Document.cpp |
+++ b/fpdfsdk/src/javascript/Document.cpp |
@@ -1467,7 +1467,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; |
@@ -1511,7 +1511,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; |