| Index: fpdfsdk/src/javascript/Field.cpp
|
| diff --git a/fpdfsdk/src/javascript/Field.cpp b/fpdfsdk/src/javascript/Field.cpp
|
| index e3c44e953f85f608a2102a36436d91728194c707..38262ce13263e2ea3ab40640c9685d1652d88f9a 100644
|
| --- a/fpdfsdk/src/javascript/Field.cpp
|
| +++ b/fpdfsdk/src/javascript/Field.cpp
|
| @@ -3315,8 +3315,9 @@ FX_BOOL Field::buttonGetIcon(IFXJS_Context* cc,
|
| CJS_Runtime* pRuntime = pContext->GetJSRuntime();
|
| ASSERT(pRuntime != NULL);
|
|
|
| - JSFXObject pObj = JS_NewFxDynamicObj(*pRuntime, pContext,
|
| - JS_GetObjDefnID(*pRuntime, L"Icon"));
|
| + v8::Local<v8::Object> pObj =
|
| + JS_NewFxDynamicObj(pRuntime->GetIsolate(), pContext,
|
| + JS_GetObjDefnID(pRuntime->GetIsolate(), L"Icon"));
|
| ASSERT(pObj.IsEmpty() == FALSE);
|
|
|
| CJS_Icon* pJS_Icon = (CJS_Icon*)JS_GetPrivate(pObj);
|
| @@ -3530,8 +3531,9 @@ FX_BOOL Field::getArray(IFXJS_Context* cc,
|
| for (int j = 0, jsz = swSort.GetSize(); j < jsz; j++) {
|
| CFX_WideString* pStr = swSort.GetAt(j);
|
|
|
| - JSFXObject pObj = JS_NewFxDynamicObj(*pRuntime, pContext,
|
| - JS_GetObjDefnID(*pRuntime, L"Field"));
|
| + v8::Local<v8::Object> pObj =
|
| + JS_NewFxDynamicObj(pRuntime->GetIsolate(), pContext,
|
| + JS_GetObjDefnID(pRuntime->GetIsolate(), L"Field"));
|
| ASSERT(pObj.IsEmpty() == FALSE);
|
|
|
| CJS_Field* pJSField = (CJS_Field*)JS_GetPrivate(pObj);
|
|
|