diff options
author | Jochen Eisinger <jochen@chromium.org> | 2016-07-15 13:41:01 +0200 |
---|---|---|
committer | Jochen Eisinger <jochen@chromium.org> | 2016-07-15 13:41:01 +0200 |
commit | 6dceb53484b65aa73c2ebc25bbd83c59e1cd5b18 (patch) | |
tree | 9c1e02947ee30a69a9d4af64388d3739e8556932 /xfa/fxjse | |
parent | e5effaf2556046b01265484922e0b8681790323b (diff) | |
download | pdfium-6dceb53484b65aa73c2ebc25bbd83c59e1cd5b18.tar.xz |
Remove constructor from functions that aren't constructors
BUG=chromium:625823
TBR=haraken@chromium.org,thestig@chromium.org
Review-Url: https://codereview.chromium.org/2128793002
(cherry picked from commit 3c27a84d15c06f85cc7f455f96dc124673f9f9d2)
Review URL: https://codereview.chromium.org/2153113002 .
Diffstat (limited to 'xfa/fxjse')
-rw-r--r-- | xfa/fxjse/dynprop.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xfa/fxjse/dynprop.cpp b/xfa/fxjse/dynprop.cpp index 498c6608cf..2fa7a8df10 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()); } } } |