summaryrefslogtreecommitdiff
path: root/fxjs/cfxjs_engine.cpp
diff options
context:
space:
mode:
authorFranziska Hinkelmann <franzih@chromium.org>2018-03-21 12:58:25 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-21 12:58:25 +0000
commit9a635e8127880dd93b2abc5e8da6a45046d35e31 (patch)
treeac361ba63aec227d693aca2b104fbe7be65ceae0 /fxjs/cfxjs_engine.cpp
parent765d1ebe41defa659a703a2f0ff5284c0da96a95 (diff)
downloadpdfium-9a635e8127880dd93b2abc5e8da6a45046d35e31.tar.xz
Replace deprecated SetNamedPropertyHandler
Replace v8::SetNamedPropertyHandler() with SetHandler() and the appropriate flag set. Change-Id: Ia06311cbea4ab21903d4ac4fe115eab6f0983c0d Reviewed-on: https://pdfium-review.googlesource.com/28930 Reviewed-by: Jochen Eisinger <jochen@chromium.org> Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Diffstat (limited to 'fxjs/cfxjs_engine.cpp')
-rw-r--r--fxjs/cfxjs_engine.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/fxjs/cfxjs_engine.cpp b/fxjs/cfxjs_engine.cpp
index 927d4a7b0a..561a0a31f9 100644
--- a/fxjs/cfxjs_engine.cpp
+++ b/fxjs/cfxjs_engine.cpp
@@ -377,16 +377,19 @@ void CFXJS_Engine::DefineObjProperty(int nObjDefnID,
void CFXJS_Engine::DefineObjAllProperties(
int nObjDefnID,
- v8::NamedPropertyQueryCallback pPropQurey,
- v8::NamedPropertyGetterCallback pPropGet,
- v8::NamedPropertySetterCallback pPropPut,
- v8::NamedPropertyDeleterCallback pPropDel) {
+ v8::GenericNamedPropertyQueryCallback pPropQurey,
+ v8::GenericNamedPropertyGetterCallback pPropGet,
+ v8::GenericNamedPropertySetterCallback pPropPut,
+ v8::GenericNamedPropertyDeleterCallback pPropDel) {
v8::Isolate::Scope isolate_scope(GetIsolate());
v8::HandleScope handle_scope(GetIsolate());
CFXJS_ObjDefinition* pObjDef =
CFXJS_ObjDefinition::ForID(GetIsolate(), nObjDefnID);
- pObjDef->GetInstanceTemplate()->SetNamedPropertyHandler(pPropGet, pPropPut,
- pPropQurey, pPropDel);
+ pObjDef->GetInstanceTemplate()->SetHandler(
+ v8::NamedPropertyHandlerConfiguration(
+ pPropGet, pPropPut, pPropQurey, pPropDel, nullptr,
+ v8::Local<v8::Value>(),
+ v8::PropertyHandlerFlags::kOnlyInterceptStrings));
}
void CFXJS_Engine::DefineObjConst(int nObjDefnID,