summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_arguments.cpp
diff options
context:
space:
mode:
authorAdam Klein <adamk@chromium.org>2018-01-17 21:06:27 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-17 21:06:27 +0000
commit4c451ba43b19c2679467bbb7d7502b3596224038 (patch)
tree9792633226d49234499132db0d1560b2f4459c1e /fxjs/cfxjse_arguments.cpp
parentd859d5745b0a5da010ada6ee512841e1f4394ec6 (diff)
downloadpdfium-4c451ba43b19c2679467bbb7d7502b3596224038.tar.xz
Pass Isolate to v8::String::Utf8Value API
The non-Isolate version will soon be deprecated. Bug: v8:7269, v8:7282 Change-Id: I204e45bd73f5b809d6c44b77bbcf62d32e7ccbec Reviewed-on: https://pdfium-review.googlesource.com/23058 Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Jochen Eisinger <jochen@chromium.org> Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_arguments.cpp')
-rw-r--r--fxjs/cfxjse_arguments.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cfxjse_arguments.cpp b/fxjs/cfxjse_arguments.cpp
index f390cefdf8..663996ce88 100644
--- a/fxjs/cfxjse_arguments.cpp
+++ b/fxjs/cfxjse_arguments.cpp
@@ -41,7 +41,7 @@ float CFXJSE_Arguments::GetFloat(int32_t index) const {
ByteString CFXJSE_Arguments::GetUTF8String(int32_t index) const {
v8::Local<v8::String> hString = (*m_pInfo)[index]->ToString();
- v8::String::Utf8Value szStringVal(hString);
+ v8::String::Utf8Value szStringVal(m_pInfo->GetIsolate(), hString);
return ByteString(*szStringVal);
}