diff options
author | Jochen Eisinger <jochen@chromium.org> | 2015-05-20 10:49:45 +0200 |
---|---|---|
committer | Jochen Eisinger <jochen@chromium.org> | 2015-05-20 10:49:45 +0200 |
commit | 90a4181194dd8eca153cf2a101ec27e382b27a58 (patch) | |
tree | 29c54fc0e9664431ab7e393b802708e84c58e12b /xfa/src | |
parent | 6ecf19ced0de2d41720b4067171e751ca38c8ba2 (diff) | |
download | pdfium-90a4181194dd8eca153cf2a101ec27e382b27a58.tar.xz |
Fix compilation on xfa branch and turn on v8 deprecation warnings
R=vogelheim@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1142293003
Diffstat (limited to 'xfa/src')
-rw-r--r-- | xfa/src/fxjse/src/dynprop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/src/fxjse/src/dynprop.cpp b/xfa/src/fxjse/src/dynprop.cpp index ddc3e20054..3fc6c494eb 100644 --- a/xfa/src/fxjse/src/dynprop.cpp +++ b/xfa/src/fxjse/src/dynprop.cpp @@ -258,7 +258,7 @@ void CFXJSE_Class::SetUpDynPropHandler(CFXJSE_Context* pContext, CFXJSE_Value* p v8::Isolate* pIsolate = pValue->GetIsolate();
CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext scope(pIsolate, pContext);
v8::Local<v8::Context> hContext = v8::Local<v8::Context>::New(pIsolate, pContext ? pContext->m_hContext : CFXJSE_RuntimeData::Get(pIsolate)->m_hRootContext);
- v8::Local<v8::Object> hObject = v8::Local<v8::Object>::New(pIsolate, pValue->m_hValue.As<v8::Object>());
+ v8::Local<v8::Object> hObject = v8::Local<v8::Value>::New(pIsolate, pValue->m_hValue).As<v8::Object>();
v8::Local<v8::Object> hHarmonyProxyObj = hContext->Global()->Get(v8::String::NewFromUtf8(pIsolate, "Proxy")).As<v8::Object>();
v8::Local<v8::Function> hHarmonyProxyCreateFn = hHarmonyProxyObj->Get(v8::String::NewFromUtf8(pIsolate, "create")).As<v8::Function>();
v8::Local<v8::Value> hOldPrototype = hObject->GetPrototype();
|