| Index: xfa/fxjse/dynprop.cpp
|
| diff --git a/xfa/fxjse/dynprop.cpp b/xfa/fxjse/dynprop.cpp
|
| index 498c6608cf1790ae5c019c037a2be2b28a5922a3..2fa7a8df103bf28b3b46858200a746cfce47b3c5 100644
|
| --- a/xfa/fxjse/dynprop.cpp
|
| +++ b/xfa/fxjse/dynprop.cpp
|
| @@ -63,9 +63,11 @@ static void FXJSE_DynPropGetterAdapter(const FXJSE_CLASS* lpClass,
|
| 1, v8::String::NewFromUtf8(
|
| pIsolate, reinterpret_cast<const char*>(szPropName.raw_str()),
|
| v8::String::kNormalString, szPropName.GetLength()));
|
| - lpValue->ForceSetValue(v8::Function::New(
|
| - lpValue->GetIsolate(), FXJSE_DynPropGetterAdapter_MethodCallback,
|
| - hCallBackInfo));
|
| + lpValue->ForceSetValue(
|
| + v8::Function::New(lpValue->GetIsolate()->GetCurrentContext(),
|
| + FXJSE_DynPropGetterAdapter_MethodCallback,
|
| + hCallBackInfo, 0, v8::ConstructorBehavior::kThrow)
|
| + .ToLocalChecked());
|
| }
|
| }
|
| }
|
|
|