From d5f427901b52e1311ab51f16e87459ec34691591 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 29 Aug 2018 23:18:08 +0000 Subject: Stop using deprecated V8 APIs in CJS_Runtime. Also for CFXJSE_Arguments. Change-Id: I15bfa4e09675bb48aecfa0c55539bf8dc50675e6 Reviewed-on: https://pdfium-review.googlesource.com/41370 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- fxjs/cfxjse_arguments.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fxjs/cfxjse_arguments.cpp') diff --git a/fxjs/cfxjse_arguments.cpp b/fxjs/cfxjse_arguments.cpp index 0b0dc39953..174fd3c2c7 100644 --- a/fxjs/cfxjse_arguments.cpp +++ b/fxjs/cfxjse_arguments.cpp @@ -49,7 +49,9 @@ float CFXJSE_Arguments::GetFloat(int32_t index) const { ByteString CFXJSE_Arguments::GetUTF8String(int32_t index) const { v8::Isolate* isolate = m_pInfo->GetIsolate(); - v8::Local hString = (*m_pInfo)[index]->ToString(isolate); + v8::Local info = (*m_pInfo)[index]; + v8::Local hString = + info->ToString(isolate->GetCurrentContext()).ToLocalChecked(); v8::String::Utf8Value szStringVal(isolate, hString); return ByteString(*szStringVal); } -- cgit v1.2.3