summaryrefslogtreecommitdiff
path: root/fxjs/fxjs_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/fxjs_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/fxjs_v8.cpp')
-rw-r--r--fxjs/fxjs_v8.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/fxjs_v8.cpp b/fxjs/fxjs_v8.cpp
index 98f5ff720a..50345cfcd1 100644
--- a/fxjs/fxjs_v8.cpp
+++ b/fxjs/fxjs_v8.cpp
@@ -465,14 +465,14 @@ int CFXJS_Engine::Execute(const WideString& script, FXJSErr* pError) {
v8::Local<v8::Script> compiled_script;
if (!v8::Script::Compile(context, NewString(script.AsStringView()))
.ToLocal(&compiled_script)) {
- v8::String::Utf8Value error(try_catch.Exception());
+ v8::String::Utf8Value error(GetIsolate(), try_catch.Exception());
// TODO(tsepez): return error via pError->message.
return -1;
}
v8::Local<v8::Value> result;
if (!compiled_script->Run(context).ToLocal(&result)) {
- v8::String::Utf8Value error(try_catch.Exception());
+ v8::String::Utf8Value error(GetIsolate(), try_catch.Exception());
// TODO(tsepez): return error via pError->message.
return -1;
}