| Index: xfa/fxjse/context.cpp
|
| diff --git a/xfa/fxjse/context.cpp b/xfa/fxjse/context.cpp
|
| index 76df5616e53311e710775e333f630ec844ceb010..bdc31e45946b8be448f241bb1054a63572a5468d 100644
|
| --- a/xfa/fxjse/context.cpp
|
| +++ b/xfa/fxjse/context.cpp
|
| @@ -21,14 +21,14 @@ void FXJSE_Context_Release(CFXJSE_Context* pContext) {
|
| delete pContext;
|
| }
|
|
|
| -FXJSE_HVALUE FXJSE_Context_GetGlobalObject(CFXJSE_Context* pContext) {
|
| +CFXJSE_Value* FXJSE_Context_GetGlobalObject(CFXJSE_Context* pContext) {
|
| if (!pContext)
|
| return nullptr;
|
|
|
| CFXJSE_Value* lpValue = CFXJSE_Value::Create(pContext->GetRuntime());
|
| ASSERT(lpValue);
|
| pContext->GetGlobalObject(lpValue);
|
| - return reinterpret_cast<FXJSE_HVALUE>(lpValue);
|
| + return lpValue;
|
| }
|
|
|
| static const FX_CHAR* szCompatibleModeScripts[] = {
|
| @@ -68,11 +68,9 @@ void FXJSE_Context_EnableCompatibleMode(CFXJSE_Context* pContext,
|
|
|
| FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext,
|
| const FX_CHAR* szScript,
|
| - FXJSE_HVALUE hRetValue,
|
| - FXJSE_HVALUE hNewThisObject) {
|
| - return pContext->ExecuteScript(
|
| - szScript, reinterpret_cast<CFXJSE_Value*>(hRetValue),
|
| - reinterpret_cast<CFXJSE_Value*>(hNewThisObject));
|
| + CFXJSE_Value* pRetValue,
|
| + CFXJSE_Value* pNewThisObject) {
|
| + return pContext->ExecuteScript(szScript, pRetValue, pNewThisObject);
|
| }
|
|
|
| v8::Local<v8::Object> FXJSE_CreateReturnValue(v8::Isolate* pIsolate,
|
|
|