Index: xfa/fxjse/value.cpp |
diff --git a/xfa/fxjse/value.cpp b/xfa/fxjse/value.cpp |
index d3366cf08e349757671fbc6f63716e35e81892fb..c23e12c32f8c2e86224d9969845753b106c81e9e 100644 |
--- a/xfa/fxjse/value.cpp |
+++ b/xfa/fxjse/value.cpp |
@@ -72,8 +72,9 @@ |
return reinterpret_cast<CFXJSE_Value*>(hValue)->ToInteger(); |
} |
-void* FXJSE_Value_ToObject(FXJSE_HVALUE hValue) { |
- return reinterpret_cast<CFXJSE_Value*>(hValue)->ToObject(); |
+void* FXJSE_Value_ToObject(FXJSE_HVALUE hValue, FXJSE_HCLASS hClass) { |
+ CFXJSE_Class* lpClass = reinterpret_cast<CFXJSE_Class*>(hClass); |
+ return reinterpret_cast<CFXJSE_Value*>(hValue)->ToObject(lpClass); |
} |
void FXJSE_Value_SetUndefined(FXJSE_HVALUE hValue) { |
@@ -237,7 +238,7 @@ |
return new CFXJSE_Value(pIsolate); |
} |
-void* CFXJSE_Value::ToObject() const { |
+void* CFXJSE_Value::ToObject(CFXJSE_Class* lpClass) const { |
ASSERT(!m_hValue.IsEmpty()); |
CFXJSE_ScopeUtil_IsolateHandleRootContext scope(m_pIsolate); |
@@ -247,7 +248,7 @@ |
if (!hValue->IsObject()) |
return nullptr; |
- return FXJSE_RetrieveObjectBinding(hValue.As<v8::Object>()); |
+ return FXJSE_RetrieveObjectBinding(hValue.As<v8::Object>(), lpClass); |
} |
V8_INLINE static double FXJSE_ftod(FX_FLOAT fNumber) { |