summaryrefslogtreecommitdiff
path: root/fxjs/cjs_v8.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/cjs_v8.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/cjs_v8.cpp')
-rw-r--r--fxjs/cjs_v8.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_v8.cpp b/fxjs/cjs_v8.cpp
index 18bbed606c..8f77ec6a88 100644
--- a/fxjs/cjs_v8.cpp
+++ b/fxjs/cjs_v8.cpp
@@ -177,7 +177,7 @@ WideString CJS_V8::ToWideString(v8::Local<v8::Value> pValue) {
v8::MaybeLocal<v8::String> maybe_string = pValue->ToString(context);
if (maybe_string.IsEmpty())
return WideString();
- v8::String::Utf8Value s(maybe_string.ToLocalChecked());
+ v8::String::Utf8Value s(m_isolate, maybe_string.ToLocalChecked());
return WideString::FromUTF8(ByteStringView(*s, s.length()));
}
@@ -188,7 +188,7 @@ ByteString CJS_V8::ToByteString(v8::Local<v8::Value> pValue) {
v8::MaybeLocal<v8::String> maybe_string = pValue->ToString(context);
if (maybe_string.IsEmpty())
return ByteString();
- v8::String::Utf8Value s(maybe_string.ToLocalChecked());
+ v8::String::Utf8Value s(m_isolate, maybe_string.ToLocalChecked());
return ByteString(*s);
}