summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_class.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-04-24 16:38:51 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-02 16:27:14 +0000
commit336544a7451ac80c9f33216b7f61e9347d251108 (patch)
tree5adad5d8f5aebef14f11b2967c8815f3e7e8c2e6 /fxjs/cfxjse_class.cpp
parentec3a9e27d9e37ef9074c0097481d4a9dfd57549f (diff)
downloadpdfium-336544a7451ac80c9f33216b7f61e9347d251108.tar.xz
Tag FXJSE's V8 objects as such.
There are two APIs to V8 from pdfium: FXJS and FXJSE (for XFA). Previously, we put tags in internal fields for FXJS's objects. Now do the same for FXJSE. Bug: 713998 Change-Id: Ife4f616df3768db566b996dedc1da104f8d3fb93 Reviewed-on: https://pdfium-review.googlesource.com/4475 Reviewed-by: Jochen Eisinger <jochen@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_class.cpp')
-rw-r--r--fxjs/cfxjse_class.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cfxjse_class.cpp b/fxjs/cfxjse_class.cpp
index da70583f45..3dba0abbd6 100644
--- a/fxjs/cfxjse_class.cpp
+++ b/fxjs/cfxjse_class.cpp
@@ -329,7 +329,7 @@ CFXJSE_Class* CFXJSE_Class::Create(
pIsolate, const_cast<FXJSE_CLASS_DESCRIPTOR*>(lpClassDefinition)));
hFunctionTemplate->SetClassName(
v8::String::NewFromUtf8(pIsolate, lpClassDefinition->name));
- hFunctionTemplate->InstanceTemplate()->SetInternalFieldCount(1);
+ hFunctionTemplate->InstanceTemplate()->SetInternalFieldCount(2);
v8::Local<v8::ObjectTemplate> hObjectTemplate =
hFunctionTemplate->InstanceTemplate();
SetUpNamedPropHandler(pIsolate, hObjectTemplate, lpClassDefinition);