From af3d6cc8910fbddc7518f9d54f4c4ad0dd25ed40 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 19 Oct 2018 18:06:52 +0000 Subject: Roll v8/ 604c50c84..626844157 (516 commits) https://chromium.googlesource.com/v8/v8.git/+log/604c50c84e67..626844157660 Version 7.1.314 Update a few callers to avoid deprecated V8 APIs. Created with: roll-dep v8 Change-Id: Ifabcae4956364cf1d02d4c2fe6074806fadc7ee3 Reviewed-on: https://pdfium-review.googlesource.com/c/43595 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- fxjs/cfx_v8.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'fxjs/cfx_v8.cpp') diff --git a/fxjs/cfx_v8.cpp b/fxjs/cfx_v8.cpp index 73d95ae9b4..bd0e5eb62a 100644 --- a/fxjs/cfx_v8.cpp +++ b/fxjs/cfx_v8.cpp @@ -150,11 +150,7 @@ int CFX_V8::ToInt32(v8::Local pValue) { bool CFX_V8::ToBoolean(v8::Local pValue) { if (pValue.IsEmpty()) return false; - v8::Local context = m_pIsolate->GetCurrentContext(); - v8::MaybeLocal maybe_boolean = pValue->ToBoolean(context); - if (maybe_boolean.IsEmpty()) - return false; - return maybe_boolean.ToLocalChecked()->Value(); + return pValue->BooleanValue(m_pIsolate.Get()); } double CFX_V8::ToDouble(v8::Local pValue) { -- cgit v1.2.3